def squaresum(n):
    sum=0
    for i in range(1, n+1):
        sum = sum +(i*i)
    return sum
n=int(input("enter the number : "))
print(squaresum(n))

def squaresum(n):
    sum=0
    for i in range(1, n+1):
        sum = sum +(i*i)
    return sum
n=int(input("enter the number : "))
print(squaresum(n))
