// author: gary #include using namespace std; #define ALL(x) (x).begin(), (x).end() #define SZ(x) ( (int) (x).size() ) #define DBG(x) do { std::cerr << #x << ": " << x << std::endl; } while (0) typedef pair pii; typedef long long ll; template bool cmax(T& a, T b) { if(a < b) { a = b; return true; } return false; } template bool cmin(T& a, T b) { if(a > b) { a = b; return true; } return false; } ll g(ll n) { return n * (1 + 1 + 2 * (n - 1)) / 2; } ll s(ll n) { return g(n * (n + 1) / 2) - g(n * (n - 1) / 2); } int main() { // for(int i = 1; i <= 10; i++) cout << g(i) << endl; int k; while(cin >> k) { cout << s(k) << endl; } return 0; }