X = int(imput()) if X == 0: X += 1 elif X == 1: X -= 1 print(X)