#include using namespace std; int main(){ ios::sync_with_stdio(false); int N;cin>>N; int a=0,b=9; for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++){ if(i==j){ if(i%2==1){ cout<<1; }else{ cout<<2; } }else{ if(j<=i){ cout<<2; }else{ cout<<0; } } } cout<