S = input() ans = '' for i in range(len(S)): if S[i] == 'I' or S[i] == 'l': ans += '1' continue if S[i] == 'O' or S[i] == 'o': ans += '0' continue ans += S[i] print(ans)