using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace exr_01_matrix { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = int.Parse(Console.ReadLine()); int d = int.Parse(Console.ReadLine()); for (int i = a; i <= b; i++) { for (int ii = a; ii <= b; ii++) { if (i != ii) { for (int iii = c; iii <= d; iii++) { for (int iiii = c; iiii <= d; iiii++) { if (iii != iiii) { if (i + iiii == ii + iii) { Console.WriteLine("" + i + ii); Console.WriteLine("" + iii + iiii); Console.WriteLine(); } } } } } } } } } }