public class sxh
{
public static void main(String[] args)
{
for(int a=1;a<=9;a++){
for (int b=0;b<=9;b++){
for (int c=0;c<=9;c++){
int sx=a*100+b*10+c;
if(sx==a*a*a+b*b*b+c*c*c)
System.out.println(sx);
}
}
}
}
}
{
public static void main(String[] args)
{
for(int a=1;a<=9;a++){
for (int b=0;b<=9;b++){
for (int c=0;c<=9;c++){
int sx=a*100+b*10+c;
if(sx==a*a*a+b*b*b+c*c*c)
System.out.println(sx);
}
}
}
}
}