import java.util.*;
public class ReverseString{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter the String which is to be reversed");
char[] str = sc.nextLine().toCharArray();
for(int i=str.length-1;i>=0;i--){
System.out.print(str[i]);
}
}
}