S = input() for s in S: if s in "Il": print(1, end="") elif s in "Oo": print(0, end="") else: print(s, end="") print()