#include <iostream>
using namespace std;
int main() {
	int n, res,a1=2,d=2;
	cin >>n;
	res=((2*a1+d*(n-1))/2)*n;
	cout << (res+1);
	return 0;
}