private static void writeInput(int input, PrintWriter out) throws IOException {
		out.print("|");
		out.print((input & Move.RESET) != 0 ? "P" : ".");
		out.print("|");
		out.print((input & Move.UP) != 0 ? "U" : ".");
		out.print((input & Move.DOWN) != 0 ? "D" : ".");
		out.print((input & Move.LEFT) != 0 ? "L" : ".");
		out.print((input & Move.RIGHT) != 0 ? "R" : ".");
		out.print((input & Move.SELECT) != 0 ? "s" : ".");
		out.print((input & Move.START) != 0 ? "S" : ".");
		out.print((input & Move.B) != 0 ? "B" : ".");
		out.print((input & Move.A) != 0 ? "A" : ".");
	}