using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q38908
{
class Program
{
static int result;
static bool flag = true;
static List<int> list = new List<int>();
static void Main(string[] args)
{
result = 0;
for (int i = 1; i <= 1000; i++)
for (int j = i + 1; j <= 1000; j++)
{
Func(i, j);
}
Console.ReadKey();
}
static void Func(int i, int j)
{
result = j - 2 * i;
if (result == 0)
{
if (list.Contains(i)) return;
list.Add(i);
Console.Write("|{0,9}{1,9}|", i, j);
return;
}
if (result > 0 && flag)
{
flag = false;
Func(result, j);
}
flag = true;
}
}
}