#include <bits/stdc++.h>

using namespace std;

#define a1 2
#define d 3

int main(){
    int n = 0; 
    while(cin >> n){
        int res = 0;
        int an = a1 + (n - 1) * d;
        res = (a1 + an) * n / 2;
        
        cout << res << endl;
    }
    
    return 0;
}