a = input()
b = []
for i in iter(a):
    if int(i)%2==0:
        b.append(0)
    else:
        b.append(1)

print(int("".join(map(str,b))))