#include using namespace std; int main(){ string S; cin >> S; while(!S.empty()){ if(S.front()=='I' || S.front()=='l') cout << 1; else if(S.front()=='O' || S.front()=='o') cout << 0; else cout << S.front(); S.erase(S.begin()); } cout << endl; return 0; }