S = input().strip() print(S[:-1] + ('1' if S[-1] == '0' else '0'))