var
s1,s2,s3:longint;
i,j,k:longint;
f:array[0..100] of longint;
begin
read(s1,s2,s3);
fillchar(f,sizeof(f),0);
for i:=1 to s1 do
for j:=1 to s2 do
for k:=1 to s3 do
begin
inc(f[i+j+k]);
end;
j:=1;
for i:=1 to 100 do
if f[i]>f[j] then j:=i;
writeln(j);
end.