#includevoid main() { int i,j,n; double t,s; scanf("%d",&n); s=0; t=1; for ( i=1;i<=n;i++ ) { t*=i*2; t*=i*2-1; s+=t; } printf("%.0lf\n",s);}