#include <stdio.h>
int main(){
int x,n,X,S,S1,Ans;
scanf("%d",&x);
n=(x+1)/2;
X=(2*1+(n-1)*2)*n/2;
S=(2*1+(X-1)*2)*X/2;
S1=(2*1+(X-4)*2)*(X-3)/2;
Ans=S-S1;
printf("%d\n",Ans);
scanf("%d",&x);
n=(x+1)/2;
X=(2*1+(n-1)*2)*n/2;
S=(2*1+(X-1)*2)*X/2;
S1=(2*1+(X-4)*2)*(X-3)/2;
Ans=S-S1;
printf("%d\n",Ans);
scanf("%d",&x);
n=(x+1)/2;
X=(2*1+(n-1)*2)*n/2;
S=(2*1+(X-1)*2)*X/2;
S1=(2*1+(X-4)*2)*(X-3)/2;
Ans=S-S1;
printf("%d\n",Ans);
return 0;
}