//A.java
public class A {
final static int N = 10;
public static void main(String[] args) {
byte a[][] = new byte[(int) Math.pow(2, N)][N];
for (int i = 1; i < a.length; i++) {
for(int j=0;j<N;j++){
a[i][j]=a[i-1][j];
}
a[i]=exec(a[i], N);
}
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < N; j++) {
System.out.print(a[i][j]);
}
System.out.println();
}
}
static byte[] exec(byte a[], int n) {
for (int i = n - 1; i >= 0; i--) {
if (a[i] == 0) {
a[i] = 1;
return a;
} else {
a[i] = 0;
}
}
return null;
}
}