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.*;
import java.util.*;

/**
 * Apples are better than pears.
 * @author Gorokhov Nikita (wackloner@gmail.com)
 */

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		new Main().execute();
	}
	
	private void execute() throws NumberFormatException, IOException {
		InputReader in = new InputReader();
		OutputWriter out = new OutputWriter();
		Solver amazing = new Solver();
		amazing.solve(in, out);
		out.close();
	}
	
	
	
	class Solver {
		public void solve(InputReader in, OutputWriter out) throws NumberFormatException, IOException {
			int n = in.nextInt(), m = in.nextInt();
			int[] a = generateArray(n), b = generateArray(m);
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < m; j++) {
					if (j != 0) out.print(' ');
					out.print(a[i] * b[j]);
				}
				out.println();
			}
		}
		
		private int[] generateArray(int n) {
			int[] res = new int[n];
			Arrays.fill(res, 1);
			if (n == 2) {
				res[0] = 3;
				res[1] = 4;
			} else if (n % 2 == 0) {
			    res[n - 1] = n / 2 - 1;
			} else if (n > 1) {
			    res[n - 2] = 2;
			    res[n - 1] = n / 2 + 1;
			}
			return res;
		}
	}
	
	
	
	class InputReader {
		private BufferedReader reader;
		private StringTokenizer tokenizer;
		
		public InputReader() {
			reader = new BufferedReader(new InputStreamReader(System.in));
		}
		
		public InputReader(String fileName) throws FileNotFoundException {
			reader = new BufferedReader(new FileReader(fileName));
		}
		
		public String nextLine() throws IOException {
			return reader.readLine();
		}
		
		public String nextToken() throws IOException {
			while (tokenizer == null || !tokenizer.hasMoreTokens())
				tokenizer = new StringTokenizer(nextLine());
			return tokenizer.nextToken();
		}
		
		public boolean hasNext() throws IOException {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				String s = nextLine();
				if (s == null)
					return false;
				tokenizer = new StringTokenizer(s);
			}
			return true;
		}
		
		public int nextInt() throws NumberFormatException, IOException {
			return Integer.parseInt(nextToken());
		}
		
		public long nextLong() throws NumberFormatException, IOException {
			return Long.parseLong(nextToken());
		}
		
		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(nextToken());
		}
		
		public void readIntegerArrays(int[]...arrays) throws NumberFormatException, IOException {
			for (int i = 0; i < arrays[0].length; i++)
				for (int j = 0; j < arrays.length; j++)
					arrays[j][i] = nextInt();
		}
	}
	
	
	
	class OutputWriter {
		private PrintWriter writer;
		
		public OutputWriter() {
			writer = new PrintWriter(System.out);
		}
		
		public OutputWriter(String fileName) throws FileNotFoundException {
			writer = new PrintWriter(fileName);
		}
		
		public void print(Object...objects) {
			for (int i = 0; i < objects.length; i++) {
				if (i != 0) writer.print(' ');
				writer.print(objects[i]);
			}
		}
		
		public void println(Object...objects) {
			print(objects);
			writer.println();
		}
		
		public void printArray(int[] array) {
			for (int i = 0; i < array.length; i++) {
				if (i != 0) writer.print(' ');
				writer.print(array[i]);
			}
			writer.println();
		}
		
		public void printArray(long[] array) {
			for (int i = 0; i < array.length; i++) {
				if (i != 0) writer.print(' ');
				writer.print(array[i]);
			}
			writer.println();
		}
		
		public void printArray(double[] array) {
			for (int i = 0; i < array.length; i++) {
				if (i != 0) writer.print(' ');
				writer.print(array[i]);
			}
			writer.println();
		}
		
		public void close() {
			writer.close();
		}
	}
}