#include
void main()
{
int sum=0,i;
int a,b,c;
int first=0,second=0;
float third=0.0;
scanf("%d%d%d",&a,&b,&c);
for (i=1;i<=a;i++)
{
first=first+i;
}
for (i=1;i<=b;i++)
{
second=second+i*i;
}
for (float j=1.0;j<=c;j++)
{
third=third+1.0/j;
}
sum=first+second+(int)(third+0.5);
printf("和sum=%d\n",sum);
}