num = 0
for i in range(1,100+1):
	num+=i**i
print num