#include using namespace std; int main(){ double n=0,k,j=1; cin>>k; for(k;k>=0;k=k-j){ n=n+j*j; j++; } cout<<n; return 0; }```