#include<bits/stdc++.h>
using namespace std;
int hh[1000000];
int s1,s2,s3,maxx,sc;
int main()
{ freopen("bones.in","r",stdin);
freopen("bones.out","w",stdout);
scanf("%d%d%d",&s1,&s2,&s3);
for (int i=1;i<=s1;i++)
for(int j=1;j<=s2;j++)
for (int k=1;k<=s3;k++)
{ long long z=i+j+k;
hh[z]++;
}
for (long long i=1;i<=1000000;i++)
if (hh[i]>maxx) {maxx=hh[i];sc=i;}
printf("%d",sc);
return 0;
}