package com.zj;
import java.util.Scanner;
public class zy10 { //水仙花数 public static void main(String[] args) { Scanner s=new Scanner (System.in);
System.out.println("请输入");
int n=s.nextInt();
int n1 = n / 100;
int n2 = n % 100 / 10;
int n3 = n % 10;
if(n1 * n1 * n1 + n2 * n2 * n2 + n3 * n3 * n3 == n) {
System.out.println(n + "是水仙花数");
} else {
System.out.println(n + "不是水仙花数");
}
}
}