s = input() for c in s: if c == 'I' or c == 'l': print('1', ends = "") elif c == 'O' or c == 'o': print('0', ends = "") else: print(c, ends = "") print("")