f = lambda s, a, b: s.replace(a, b, -1) print(f(f(f(f(input(), 'I', '1'), 'i', '1'), 'O', '0'), 'o', '0'))