#include<stdio.h>
int main()
{
int a,b,c;
while(scanf("%d",&a)!=EOF)
b=a-1;
c=a*b+2;
printf("%d\n",c);
}
return 0;