#include
using namespace std;
int main() {
int n,i,j,k=0;
cin>>n;
for(i=0;i<n;i++)
{
for (j=0;j<=i;j++)
{
while (n%i==0 && k<n){
if (n%(2*i+1)==0 ||(i<n && j==0)||i==j)
cout<<“1”;
else
cout<<“0”;
k++;
}
if ((n%i)!=0)
cout<<"1";
}
cout<<endl;
}
}
this code is not working