public static void main(String args[]){
for(int x=1;x<=10000;x++){
if(Math.sqrt(x+100)%1==0)
if(Math.sqrt(x+268)%1==0)
System.out.println(x);
}
}
public static void main(String args[]){
for(int x=1;x<=10000;x++){
if(Math.sqrt(x+100)%1==0)
if(Math.sqrt(x+268)%1==0)
System.out.println(x);
}
}