import std.stdio, std.conv, std.string, std.range, std.math, std.algorithm; void main() { auto N = readln.strip.to!int; auto a = readln.split.to!(int[]); int turu, kame; kame = a.map!(e=>e/2-N+1).minPos!"a>b".front; turu = N - kame; "%s %s".writefln(turu, kame); }