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