using System;
public class Program
{
public static void Main()
for ( int a = 7; a <= 7; a++ ) {
Console.Write(1);
}
Console.WriteLine("");
for ( int b = 6; b <= 7; b++ ) {
Console.Write(2);
for ( int c = 5; c <= 7; c++ ) {
Console.Write(3);
for ( int d = 4; d <= 7; d++ ) {
Console.Write(4);