int main(){
int n;
cin>>n;
int row=1;
while(row<=n){
int col =1;
if(row%2!=0){
while(col<=row){
cout<<1;
col = col + 2;
}
}
else{
cout<<1;
while(col<=row-n){
cout<<0;
col = col + 2;
}
cout<<1;
}
cout<<endl;
row++;
}
}