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