#include<bits/stdc++.h>
#define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
#define F(x,y) cnt[(x)&(y)]
using namespace std;
int n,m,cnt[1025];
int main(){
	For(i,0,1023) cnt[i]=cnt[i/2]^(i&1);
	scanf("%d%d",&n,&m);
	For(i,1,(1<<n)-1){
		For(j,1,(1<<m)-1) putchar('0'^F(i,j)^F(i-1,j)^F(i,j-1)^F(i-1,j-1));
		puts("");
	}
}