import java.io.*;

public class Solution {
    public static void main(String[] args) throws Exception {
        //напишите тут ваш код
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int m = Integer.parseInt(reader.readLine());
        int n = Integer.parseInt(reader.readLine());
        for (int i=1;i<=m; i++){
            for(int j = 2;j<=n;j++){
                System.out.print(8);
            }
            System.out.println(8);
        }

    }
}