#打印水仙花数
num = int(input("请输入一个三位数(100~999):"))
baiwei = num//100
shiwei = (num - baiwei*100)//10
gewei = num - baiwei * 100 - shiwei * 10
if num == baiwei ** 3 + shiwei ** 3 + gewei ** 3:
print("这是水仙花数!")
else:
print("不是水仙花数!")
#打印水仙花数
num = int(input("请输入一个三位数(100~999):"))
baiwei = num//100
shiwei = (num - baiwei*100)//10
gewei = num - baiwei * 100 - shiwei * 10
if num == baiwei ** 3 + shiwei ** 3 + gewei ** 3:
print("这是水仙花数!")
else:
print("不是水仙花数!")