fn read() -> Vec where ::Err: std::fmt::Debug, { let mut b = String::new(); std::io::stdin().read_line(&mut b).unwrap(); b.split(' ') .map(|x| x.trim().parse::().unwrap()) .collect() } fn main() { let iv: Vec = read(); println!("{}", iv[0].replace("treeone", "forest")) }