n = int(input("Enter the number of natural numbers: "))
s = 0
x= 0
y = 1
while y <= n:
    y+=1 
    s+=1 #s = 1,2
    m = s*s #m = 1,4
    x+=m #x = 1,5
else:
    print(x, "is the sum of the squares")
