print(bit.bxor(1, io.stdin:read("*n")))