import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s = scan.nextLine();
if (s == null) {
}
String str = reverseString(s);
System.out.println(str);
}
private static String reverseString(String str) {
// TODO Auto-generated method stub
StringBuffer sb = new StringBuffer();
char[] stringArr = str.toCharArray();
for (int i = stringArr.length - 1; i >= 0; i--) {
sb.append(stringArr[i]);
}
return sb.toString();
}
}