use std::io; use std::io::prelude::*; fn main() { let stdin = io::read_to_string(io::stdin()).unwrap(); let mut stdin = stdin.split_whitespace(); let stdout = io::stdout(); let mut stdout = io::BufWriter::new(stdout.lock()); let s = stdin.next().unwrap(); let letters: Vec = "ZYXWVUTSRQPONMLKJIHGFEDCBA".chars().collect(); let s: String = s .chars() .zip((1..=26).cycle()) .map(|(c, n)| { let position = letters.iter().position(|&x| x == c).unwrap_or(0); letters[(position + n) % letters.len()] }) .collect(); writeln!(stdout, "{}", s).unwrap_or(()); }