import java.util.*;
import java.lang.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int a = 0b100010;
		int b = 0b001001;

		int resting = a ^ b;

		System.out.format("A: %06d%nB: %06d%n", Integer.valueOf(Integer.toBinaryString(a)), Integer.valueOf(Integer.toBinaryString(b)));
		System.out.println("   ------");
		System.out.format("   %06d%n%n", Integer.valueOf(Integer.toBinaryString(resting)));

		for (int i = 1; resting != 0; i++) {
			boolean isResting = (resting & 1) == 0;

			if (isResting) {
				System.out.println("Player #" + i + " is resting.");
			}

			resting >>>= 1;
		}
	}
}