S = input() res = "" for ch in S: if ch == "I" or ch =="l": res += "1" if ch == "O" or ch =="o": res += "0" res += ch print(res)