use std::io::{Read, stdin}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut tok = buf.split_whitespace(); let mut get = || tok.next().unwrap(); macro_rules! get { ($t:ty) => (get().parse::<$t>().unwrap()); () => (get!(usize)); } let s = get().as_bytes(); let i = get!(); let j = get!(); for k in 0..s.len() { let k = if k == i || k == j { j + i - k } else { k }; print!("{}", s[k] as char); } println!(); }