total = 1

number = 1

a = 2

while a < 1001:
	number = number + a
	total = total + number
	number = number + a
	total = total + number
	number = number + a
	total = total + number
	number = number + a
	total = total + number
	
	a = a + 2

print total

# The answer is 669,171,001