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: String = stdin.next().unwrap().chars().rev().collect(); writeln!(stdout, "{}", s).unwrap_or(()); }