S = list(input()) S[-1]=str((int(S[-1])+1)%2) print(''.join(S))