#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; long long ans = n*(n+1)*(n+n+1)/6; cout<<ans<<endl; return 0; }