#include <iostream>using namespace std;int main() { int a,b,c; while(cin >>a) { b=a--; c=a*b+2; cout<<c<<endl; } return 0;}