#include "stdafx.h"
#include "iostream"
using namespace std;
//alidoran
int main()
{
int x,s=0;
cout << "input your number";
cin >> x;
while (x > 0)
s += (x * x);
x -= 1;
}
cout << s;
system("pause");
return 0;