fn main() { let s1: String = read(); let s1 = s1.chars(); let mut plane = String::new(); let mut index = 1; let ascii_a = 'A' as u8; for c in s1 { let c_plane = (((c as u8) + 26 - ascii_a - index) % 26 + ascii_a) as char; plane.push(c_plane); index = (index + 1) % 26; } println!("{}", plane); } fn read() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() }