#一行题解#

print(int("".join("0" if int(i) % 2 == 0 else "1" for i in input())))