dct = {'I':'1', 'l':'1', 'O':'0', 'o':'0'} w = list(input()) ls = [] for i in w: if i in dct.keys(): ls.append(dct[i]) else: ls.append(i) print("".join(ls))