Let s(x) be sum of digits in decimal representation of positive integer x. Given two integers n and m, find some positive integers a and b such that 

  * s(a) ≥ n, 
  * s(b) ≥ n, 
  * s(a + b) ≤ m. 

Input

The only line of input contain two integers n and m (1 ≤ n, m ≤ 1129).

Output

Print two lines, one for decimal representation of a and one for decimal representation of b. Both numbers must not contain leading zeros and must have length no more than 2230.

Examples

Input

6 5


Output

6 
7


Input

8 16


Output

35 
53

Note

In the first sample, we have n = 6 and m = 5. One valid solution is a = 6, b = 7. Indeed, we have s(a) = 6 ≥ n and s(b) = 7 ≥ n, and also s(a + b) = s(13) = 4 ≤ m.
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author dmytro.prytula prituladima@gmail.com
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        OutputWriter out = new OutputWriter(outputStream);
        BNeestestvennieUsloviya solver = new BNeestestvennieUsloviya();
        solver.solve(1, in, out);
        out.close();
    }

    static class BNeestestvennieUsloviya {
        public void solve(int testNumber, InputReader in, OutputWriter out) {

//        n = in.nextInt();
//        m = in.nextInt();

            for (int i = 0; i < 2230; i++) {
                out.print(5);
            }
            out.printLine();

            for (int i = 0; i < 2229; i++) {
                out.print(4);
            }
            out.printLine(5);


//        for (int i = 1; i <= m; i++) {
//            for (int j = n; j <= 1129; j++) {
//                if (5 * i >= j) {
//                    StringBuilder s = new StringBuilder();
//                    for (int k = 0; k < j; k++) {
//                        s.append("5");
//                    }
//                    String substring = s.toString();
//                    out.printLine(substring);
//                    out.printLine(substring);
//                    return;
//                }
//            }
//        }

        }

    }

    static class InputReader {
        private InputStream stream;

        public InputReader(InputStream stream) {
            this.stream = stream;
        }

    }

    static class OutputWriter {
        private final PrintWriter writer;

        public OutputWriter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public OutputWriter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void printLine() {
            writer.println();
        }

        public void close() {
            writer.close();
        }

        public void print(int i) {
            writer.print(i);
        }

        public void printLine(int i) {
            writer.println(i);
        }

    }
}

