import java.util.Random;
public class leipan {
public static void main(String[] args) {
new leipan().shou();
}
public void shou() {
int a[][] = new int[16][16];
Random ran = new Random();
for (int i = 0; i < 5; i++) {
int n1 = ran.nextInt(16);
int n2 = ran.nextInt(16);
a[n1][n2] = 1;
}
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < a.length; j++) {
System.out.print(a[i][j]+" ");
}System.out.println();
}
}
}