using System;

public struct Point
{
    public int X;
    public int Y;

    public Point(int x, int y)
    {
        X = x;
        Y = y;
    }
    public override string ToString()
    {
        return $"{X} {Y}";
    }
}

public class Solution
{
    public static int GetDistance(Point p)
    {
        Console.WriteLine(p);
        return int.Parse(Console.ReadLine());
    }

    public static void Main()
    {
        Point result = new Point(0, 0);
        var d0 = GetDistance(new Point(0, 0));
        if (d0 != 0)
        {
            var d1 = GetDistance(new Point(d0, 0)) / 2;
            result = new Point(d0 - d1, d1);
        }

        Console.WriteLine(result);
    }
}