include<stdio.h>

int main()
{int a,b,sum=0;
for(a=1;a<=50;a++)
{
for(b=1;b<=a;b++)
sum=b+sum;
}
printf("%d\n",sum);
}