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