#include #define INF 990000000 //27 using namespace std; int main() { string s; cin>>s; string target = "I"; // 検索文字列 string replacement = "1"; // 置換文字列 if (!target.empty()) { string::size_type pos = 0; while ((pos = s.find(target, pos)) != string::npos) { s.replace(pos, target.length(), replacement); pos += replacement.length(); } } target = "l"; // 検索文字列 replacement = "1"; // 置換文字列 if (!target.empty()) { string::size_type pos = 0; while ((pos = s.find(target, pos)) != string::npos) { s.replace(pos, target.length(), replacement); pos += replacement.length(); } } target = "O"; // 検索文字列 replacement = "0"; // 置換文字列 if (!target.empty()) { string::size_type pos = 0; while ((pos = s.find(target, pos)) != string::npos) { s.replace(pos, target.length(), replacement); pos += replacement.length(); } } target = "o"; // 検索文字列 replacement = "0"; // 置換文字列 if (!target.empty()) { string::size_type pos = 0; while ((pos = s.find(target, pos)) != string::npos) { s.replace(pos, target.length(), replacement); pos += replacement.length(); } } cout << s<