Simple modulus 2 program