print("".join(["1"if k=="I"or k=="l"else"0"if k.upper()=="O"else k for k in list(input())]))