var a,b,c:integer;
Begin
read(a,b,c);
if b=с then writeln(1);
if a=с then writeln(2);
if b=a then writeln(3);
End.
var a,b,c:integer;
Begin
read(a,b,c);
if b=с then writeln(1);
if a=с then writeln(2);
if b=a then writeln(3);
End.