public class SXH { public static void main(String[] args) { // TODO Auto-generated method stubint i,a,b,c; for(i=100;i<=999;i++) { a=i/100; b=i/10%10; c=i%10; if(i==a*a*a+b*b*b+c*c*c) System.out.printf("%d\n",i); } }}