N = int(input("请输入幸运数字:"))
M = int(input("请输入正整数:"))
if M % N == 0:
Lucky = True
else:
Lucky = False
while M != 0:
if M % 10 == N and Lucky == True:
print(f"{M}是{N}的超级幸运数")
break
M //= 10
else:
if Lucky == True:
print(f"{M}是{N}的幸运数")
else:
print(f"{M}非{N}的幸运数")