def main():
	sum = 0
	for i in xrange(1,1001):
		sum += i**i
	sum = str(sum)
	print sum[len(sum)-10:]
main()

2137cfaf44654252f1fbc41a9d1f2c772eacd697
def main():
	sum = 0
	for i in xrange(1,1001):
		sum += i**i
	sum = str(sum)
	print sum[len(sum)-10:]
main()
