#include <stdio.h> n,s,t,i; int main() { for(;~scanf("%d",&n);printf("%d\n",t*s)) for(t=n>0?:-1,i=n=t*n,s=0;i<=2*n;) s+=i++; return 0; }
#include <stdlib.h> main(n) { for(;~scanf("%d",&n);printf("%d\n",(abs(n)+1)*3*n/2)); }