for x in range(2): for y in range(2): for w in range(2): for z in range(2): r = not (w <= z) or (x <= y) or not (x) if not r: print(w, z, y, x)