using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Linq; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { int one, two; public void Solve() { Console.WriteLine("0 0"); one = int.Parse(Console.ReadLine()); if (one == 0) { return; } Console.WriteLine("0 100000"); two = int.Parse(Console.ReadLine()); if (two == 0) { return; } int x = (one + two - 100000) / 2; int y = one - x; Console.WriteLine($"{x} {y}"); } }