program Project2; {$APPTYPE CONSOLE} uses SysUtils; Var a1,a2,a3,b1,b2,b3,n:int64; begin assign(input,'task.in'); reset(input); readln(n); readln(a1,a2,a3,b1,b2,b3); close(input); assign(output,'task.out'); rewrite(output); if (a2>a1) and (b2>b1) then k:=1; if (a1>a2) and (b1>b2) then k:=1; if ((a2>a1) and (b2>b1)) and (a1>a2) and (b1>b2) then k:=2; if (a3>a1) and (b3>b1) then k:=1; if (a3>a2) and (b3>b2) then k:=1; if ((a3>a1) and (b3>b1)) and (a3>a2) and (b3>b2) then k:=2; if (a3>a2) and (b3>b2) and (a2>a1) and (b2>b1) then k:=2; writeln(k); close(output); { TODO -oUser -cConsole Main : Insert code here } end.