n=int(input())sum=0for i in range(1,n+1): #for i in range(1,n+1) => 1~n sum=sum+i^2print(sum)
100
5054
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!