def fun(num):
# 判断是否是一个有效的水仙花数
a, b, c = list(map(int, list(str(num))))
return a**3 + b**3 + c**3 == num
while 1:
try:
base = input
def fun(num):
# 判断是否是一个有效的水仙花数
a, b, c = list(map(int, list(str(num))))
return a**3 + b**3 + c**3 == num
while 1:
try:
base = input