import java.util.*; class Main { public static void main(String[] args) { System.out.println(new StringBuilder(new Scanner(System.in).next()).reverse().toString()); } }