Problem: While resting on the ship after the "Russian Code Cup" a boy named Misha invented an interesting game. He promised to give his quadrocopter to whoever will be the first one to make a rectangular table of size n × m, consisting of positive integers such that the sum of the squares of numbers for each row and each column was also a square.

Since checking the correctness of the table manually is difficult, Misha asks you to make each number in the table to not exceed 108.

Input

The first line contains two integers n and m (1 ≤ n, m ≤ 100) — the size of the table. 

Output

Print the table that meets the condition: n lines containing m integers, separated by spaces. If there are multiple possible answers, you are allowed to print anyone. It is guaranteed that there exists at least one correct answer.

Examples

Input

1 1


Output

1

Input

1 2


Output

3 4

Solution (in JAVA):

Solution:
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.Random;
import java.util.Scanner;

public class Main {
    
    public static Random rnd = new Random();
    
    public static boolean isSquare(int x) {
        int t = (int)Math.sqrt((double)x);
        return t*t == x;
    }
    
    public static boolean check(int x, int y, int z, int t, int n, int m) {
        int x2 = x*x, y2 = y*y, z2 = z*z, t2 = t*t;
        
        int s1 = x2 * (n - 1) + y2;
        int s4 = y2 * (m - 1) + t2;
    int s2 = x2 * (m - 1) + z2;
    int s3 = z2 * (n - 1) + t2;       
        if(isSquare(s1) && isSquare(s2) && isSquare(s3) && isSquare(s4)) return true;
        else return false;
    }
    public static void main(String[] args) throws IOException {
        //Scanner sc = new Scanner(new File("input.txt"));
        //PrintWriter pw = new PrintWriter(new File("output.txt"));
        
        int x, y, z, t;
        
        Scanner sc = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        
        int n = sc.nextInt(), m = sc.nextInt();
        
        while(true) {
            x = rnd.nextInt(100);
            y = rnd.nextInt(100);
            z = rnd.nextInt(100);
            t = rnd.nextInt(100);
            if(x*y*z*t != 0 && check(x, y, z, t, n, m)) {
               for (int i = 0; i < n-1; ++i) {
                    for (int j = 0; j < m - 1; ++j) {
            pw.print(x + " ");
                    }
                    pw.println(z);
                }
        for (int j = 0; j < m - 1; ++j) {
                    pw.print(y + " ");
        }
        pw.println(t);
        sc.close();
                pw.close();
                return;  
            }
        }
    }
    
}