fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s: &str = s.trim().split('\n').next().unwrap().trim(); let mut ij = String::new(); std::io::stdin().read_line(&mut ij).ok(); let ij: Vec = ij.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let i = ij[0]; let j = ij[1]; let mut t: Vec = s.chars().collect(); t.swap(i, j); for c in t { print!("{}", c); } println!(""); }