#include <iostream>
using namespace std;
int main() {
int n,j=0,sum=0;
cin >> n;
for(int i=0 ; i<n ; i++){
j=j+2;
sum=sum+j;
}
cout << (sum+1) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbixqPTAsc3VtPTA7CgljaW4gPj4gbjsKCWZvcihpbnQgaT0wIDsgaTxuIDsgaSsrKXsKCQlqPWorMjsKCQlzdW09c3VtK2o7Cgl9Cgljb3V0IDw8IChzdW0rMSkgPDwgZW5kbDsKCXJldHVybiAwOwp9