Var
a,b,i,c:integer;
begin
read(a);
read(b);
C:=10001
Read(c);
for i:=0 to 1 do begin
I:=1;
If c<10001 then<br>if a>b then
if a>c then writeln(1) else writeln(3)
else if b>c then writeln(2) else writeln(3)
Else
If a>b then writeln(1) else writeln(2); end;
end.