import math
def strong_num():
return [x for x in range(1,1000) if x==int(reduce(lambda p,q:math.factorial(int(p))+math.factorial(int(q)),str(x)))]
print(strong_num())
aW1wb3J0IG1hdGgKZGVmIHN0cm9uZ19udW0oKToKICAgIHJldHVybiBbeCBmb3IgeCBpbiByYW5nZSgxLDEwMDApIGlmIHg9PWludChyZWR1Y2UobGFtYmRhIHAscTptYXRoLmZhY3RvcmlhbChpbnQocCkpK21hdGguZmFjdG9yaWFsKGludChxKSksc3RyKHgpKSldCgpwcmludChzdHJvbmdfbnVtKCkp