convert_lis = {k:v for k,v in zip("IiOo","1100")} S = input() s = list(S) for idx,c in enumerate(s): if c in convert_lis: s[idx] = convert_lis[c] s = "".join(s) print(s)