#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stddef.h>
#include<ctype.h>
#include<math.h>
#include<time.h>
int main()
{
int s1, s2, s3;
scanf("%d %d %d", &s1, &s2, &s3);
int a[81] = { 0 };
{
for (int i = 1; i <= s1; i++)
for (int j = 1; j <= s2; j++)
for (int k = 1; k <= s3; k++)
a[i + j + k]++;
}
int max = 0,result = 0;
for (int i = 3; i <= 81; i++)
{
if (a[i] > max)
{
max = a[i];
result = i;
}
}
printf("%d", result);
return 0;
# }