import sys readline=sys.stdin.readline ans_lst=[] for s in readline().rstrip(): if s in "Il": ans_lst.append(1) elif s in "Oo": ans_lst.append(0) else: ans_lst.append(s) print(*ans_lst,sep="")