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