solution = 0
for i in range(2,5*9**5+1):
    if sum([int(x)**5 for x in str(i)]) == i:
        solution += i
print(solution)

17a08e4f43fb808266d535eef4bad65cf2b6626c
<mask token>

<mask token>
for i in range(2, 5 * 9 ** 5 + 1):
    if sum([(int(x) ** 5) for x in str(i)]) == i:
        solution += i
print(solution)

solution = 0
for i in range(2, 5 * 9 ** 5 + 1):
    if sum([(int(x) ** 5) for x in str(i)]) == i:
        solution += i
print(solution)

solution = 0
for i in range(2,5*9**5+1):
    if sum([int(x)**5 for x in str(i)]) == i:
        solution += i
print(solution)
