S = input() print(S.translate(str.maketrans({'I':'1', 'l':'1' ,'O':'0', 'o':'0'})))