n=input()
for i in n:
    if int(i)%2==0:
        n=n.replace(i,"0")
    else:
        n = n.replace(i, "1")
print(int(n))