var a,b,c:integer;
begin
clrscr;
readln(a,b,c);
if a = b then writeln(c);
if b = c then writeln(a);
if a = c then writeln(b);
readkey;
end.
var a,b,c:integer;
begin
clrscr;
readln(a,b,c);
if a = b then writeln(c);
if b = c then writeln(a);
if a = c then writeln(b);
readkey;
end.