import re s = input() s = re.sub('I|l', '1', s) s = re.sub('O|o', '0', s) print(s)