S = input() N = len(S) ls = [] for i in range(N): if S[i] == 'I' or S[i] == 'l': ls.append('1') elif S[i] == 'O' or S[i] == 'o': ls.append('0') else: ls.append(S[i]) print(*ls,sep='')