fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); print!("{}", s.replace(['I', 'l'], "1").replace(['O', 'o'], "0")); }