include<iostream>
#include<stdio.h>
int main() 
{ int a,b,c,s1=0,s2=0,s3=0,i,j,k;
  cin>>a>>b>>c;
for(i=1;i<=a;i++)
s1=s1+i;
cout<<s1<<endl;
for(j=1;j<=b;j++)
s2=s2+j*j;
cout<<s2<<endl;
for(k=1;k<=c;k++)
s3=s3+1/k;
cout<<s3<<endl;
return 0;
}