s=input() ans="" for i in range(len(s)): if s[i]=="I" or s[i]=="l": ans+="1" elif s[i]=="O" or s[i]=="o": ans+="0" else: ans+=s[i] print(ans)