public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader bRead = new BufferedReader(new InputStreamReader(System.in));
        int m = Integer.parseInt(bRead.readLine());
        int n = Integer.parseInt(bRead.readLine());
        for (int i = 0; i < m;i++) {
            System.out.println();
            lol(n);
        }

    }

    public static void lol(int n) throws Exception {
        int kek = 8;
        for (int i = 0; i < n;i++) {
            System.out.print(kek);
        }

    }
}