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