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