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