fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut s = s.trim().chars().map(|c| c.to_string()).collect::>(); let mut temp = String::new(); std::io::stdin().read_line(&mut temp).ok(); let temp: Vec = temp.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let i = temp[0]; let j = temp[1]; s.swap(i, j); println!("{}", s.join("")); }