#include <iostream> using namespace std; __int64 n; int main() { cin >> n; cout << (n*(n+1)*(n+2)>>1) << endl; return 0; } //by zzy