#include<iostream> using namespace std; int suma(int n) { if(n==0) return 0; else return suma(n-1)+n*n; } int main() { int n; cin>>n; cout<<suma(n); system("pause"); return 0; }