using System; class Program { private static readonly Scanner sc = new Scanner(); // private static readonly int INF = 1010101010; static void Main(string[] args) { Console.WriteLine("0 0"); long d1 = sc.Int; Console.WriteLine("0 1000000000"); long d2 = sc.Int; long x = (d1 + d2 - 1000000000) / 2; long y = d1 - x; Console.WriteLine("{0} {1}", x, y); } } class Scanner { private string[] _str = new string[0]; private int _i; public string Str { get { if (_i >= _str.Length) { _str = Console.ReadLine().Split(' '); _i = 0; } return _str[_i++]; } } public int Int { get { return int.Parse(Str); } } public long Long { get { return long.Parse(Str); } } public double Double { get { return double.Parse(Str); } } }