answer = 0
for i in range(1, 1000 + 1):
    answer = answer + i ** i
answer = str(answer)
print(int(answer[-10:]))

423796d2764e0b4753c6d2379fce1482275c7bf0
<mask token>

<mask token>
for i in range(1, 1000 + 1):
    answer = answer + i ** i
<mask token>
print(int(answer[-10:]))

answer = 0
for i in range(1, 1000 + 1):
    answer = answer + i ** i
answer = str(answer)
print(int(answer[-10:]))
