import std.algorithm, std.conv, std.range, std.stdio, std.string; void main() { auto ans = int.max; auto xi = 0, xa = 100000; auto yi = 0, ya = 100000; auto ri = 0, ra = 0; writeln(xi, " ", yi); stdout.flush(); ri = readln.chomp.to!int; writeln(xa, " ", yi); stdout.flush(); ra = readln.chomp.to!int; auto x = 0; if (ri < ra) { x = (xa - (ra - ri)) / 2; } else if (ri > ra) { x = (xi + (ri - ra)) / 2; } else { x = (xa + xi) / 2; } writeln(x, " ", yi); stdout.flush(); ri = readln.chomp.to!int; writeln(x, " ", ya); stdout.flush(); ra = readln.chomp.to!int; auto y = 0; if (ri < ra) { y = (ya - (ra - ri)) / 2; writeln(x, " ", y); stdout.flush(); } else if (ri > ra) { y = (yi + (ri - ra)) / 2; writeln(x, " ", y); stdout.flush(); } }