public class HomeWork {
public static void main(String[] args) {
int num1=0;
int num2=0;
int num3=0;
for(int i =100;i<=999;i++){
num=i;
int n1=i%10;
int n2=i/10%10;
int n3=i/100;
num2=((n1*n1*n1)+(n2*n2*n2)+(n3*n3*n3));
if(num2==num1){
num3++;
System.out.print(num2+"\t");
}
}
System.out.println();
System.out.println("水仙花个数为:"+num3);