qq___524
import java.lang.Math;
public class aaa{
public static void main(String args[]){
int i, j, k;
for (i = 1; i <= 300; i++){
for (j = 1; j <= 300; j++){
k = (int)Math.floor(Math.sqrt(i*i+j*j));
if (i*i+j*j == k*k){
System.out.println(i+"^2+"+j+"^2="+k+"^2");
}
}
}
}
}