#include<stdio.h>
int f[31][31][31]={0};
int hanshu(int a,int b,int c)
{
if(a<=0||b<=0||c<=0)
{
return 1;
}
else if(a>20||b>20||c>20)
return hanshu(20,20,20);
else if(f[a][b][c])
return f[a][b][c];
else if(a<b&&b<c)
{
f[a][b][c]=hanshu(a-1,b,c)+hanshu(a,b-1,c-1)-hanshu(a,b-1,c);
return f[a][b][c];
}
else
{
f[a][b][c]=hanshu(a-1,b,c)+hanshu(a-1,b-1,c)+hanshu(a-1,b,c-1)-hanshu(a-1,b-1,c-1);
return f[a][b][c];
}
}
int main()
{
int a,b,c,x;
while(scanf("%d %d %d",&a,&b,&c)!=EOF)
{
x=hanshu(a,b,c);
printf("%d\n",x);
}
return 0;
}
int f[31][31][31]={0};
int hanshu(int a,int b,int c)
{
if(a<=0||b<=0||c<=0)
{
return 1;
}
else if(a>20||b>20||c>20)
return hanshu(20,20,20);
else if(f[a][b][c])
return f[a][b][c];
else if(a<b&&b<c)
{
f[a][b][c]=hanshu(a-1,b,c)+hanshu(a,b-1,c-1)-hanshu(a,b-1,c);
return f[a][b][c];
}
else
{
f[a][b][c]=hanshu(a-1,b,c)+hanshu(a-1,b-1,c)+hanshu(a-1,b,c-1)-hanshu(a-1,b-1,c-1);
return f[a][b][c];
}
}
int main()
{
int a,b,c,x;
while(scanf("%d %d %d",&a,&b,&c)!=EOF)
{
x=hanshu(a,b,c);
printf("%d\n",x);
}
return 0;
}