import random X = random.randint(0,1) if X == 0: X += 1 elif X == 1: X -= 1 print(X)