S = input() S = S.replace("I","1").replace("l","1") S = S.replace("O","0").replace("o","0") print(S)