import sys input=lambda: sys.stdin.readline().rstrip() S=input() ans="" for s in S: if s=="I" or s=="l": ans+="1" elif s=="O" or s=="o": ans+="0" else: ans+=s print(ans)