package p02;
import java.util.Scanner;
/**
* 功能:水仙花数
* 作者:廖杨
* 日期:2022年04月07日
*/
public class Task_05 {
public static void main (String[] args){
Scanner sc=new Scanner(System.in);
System.out.print("请输入一个数");
int shu = sc.nextInt();
int a = (shu &10);
int b = (shu /10)&10;
int c = (shu /100);
int sum = a*a*a+b*b+c*c*c;
if (sum == shu){
System.out.println("是水仙花数");
}else {
System.out.println("这不是水仙花数");
}
}
}