def f(a, b): return 1 - a * b for a in range(2): for b in range(2): for c in range(2): if f(f(a, b), c) != f(a, f(b, c)): print(a, b, c) exit(0)