public static void main(String[] args) {
		int n;
		Random gen = new Random();
		if (args.length == 1) {
			n = Integer.valueOf(args[0]);
		} else {
			n = gen.nextInt(100) + 1;
		}

		boolean[][] A = new boolean[n][n];
		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				A[i][j] = gen.nextBoolean();
			}
		}
		int i = gen.nextInt(n), j = gen.nextInt(n);
		System.out.println("color = " + i + " " + j + " " + A[i][j]);
		print_matrix(A);
		flip_color(A, i, j);
		System.out.println();
		print_matrix(A);
	}