S = list(input()) S[-1] = '0' if S[-1] == '1' else '1' print(''.join(S))