#include <iostream>
#include <vector>
using namespace std;
signed main(){
int n, m;
cin >> n >> m;
vector<vector<int>> a(n, vector<int> (m));
for(int i = 0; i < n; i++)
for(int j = 0; j < m; j++)
!((i+j) & 1) ? a[i][j] = 1 : a[i][j] = 0;
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++)
cout << a[i][j] << " ";
cout << "n";
}
}