#include using namespace std; int main() { int n; cin >> n; int S = n * (n + 1) * (2 * n + 1) / 6; cout << "Rezultatul este " << S; return 0; }