import java.util.Scanner;

class Main{
    public static void main(String[] a){
			Scanner input = new Scanner(System.in);
			String OrigWord = input.nextLine();
			int OrigLen = OrigWord.length(); 
			String NewWord = "";
			for (int x=OrigLen-1; x >= 0; x--){
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			}
						
			System.out.println(NewWord);
		    input.close();
	}

} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] a){
			Scanner input = new Scanner(System.in);
			String OrigWord = input.nextLine();
			int OrigLen = OrigWord.length(); 
			String NewWord = "";
			for (int x=OrigLen-1; x >= 0; x--){
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			}
						
			System.out.println(NewWord);
		    input.close();
	}

} Main public static void main(String[] a){
			Scanner input = new Scanner(System.in);
			String OrigWord = input.nextLine();
			int OrigLen = OrigWord.length(); 
			String NewWord = "";
			for (int x=OrigLen-1; x >= 0; x--){
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			}
						
			System.out.println(NewWord);
		    input.close();
	} main {
			Scanner input = new Scanner(System.in);
			String OrigWord = input.nextLine();
			int OrigLen = OrigWord.length(); 
			String NewWord = "";
			for (int x=OrigLen-1; x >= 0; x--){
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			}
						
			System.out.println(NewWord);
		    input.close();
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String OrigWord = input.nextLine(); OrigWord input.nextLine() input.nextLine input int OrigLen = OrigWord.length(); OrigLen OrigWord.length() OrigWord.length OrigWord String NewWord = ""; NewWord "" for (int x=OrigLen-1; x >= 0; x--){
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			} int x=OrigLen-1; int x=OrigLen-1; x OrigLen-1 OrigLen 1 x >= 0 x 0 x-- x-- x {
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			} {
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			} NewWord = NewWord + (OrigWord.charAt(x)) NewWord NewWord + (OrigWord.charAt(x)) NewWord (OrigWord.charAt(x)) OrigWord.charAt OrigWord x System.out.println(NewWord) System.out.println System.out System System.out NewWord input.close() input.close input String[] a a
import java.util.Scanner;

class Main{
    public static void main(String[] a){
			Scanner input = new Scanner(System.in);
			String OrigWord = input.nextLine();
			int OrigLen = OrigWord.length(); 
			String NewWord = "";
			for (int x=OrigLen-1; x >= 0; x--){
				
				NewWord = NewWord + (OrigWord.charAt(x)); 
				
			}
						
			System.out.println(NewWord);
		    input.close();
	}

}