import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		}
	} main {
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()){
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		} scan.hasNext() scan.hasNext scan {
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		} String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan int n = str.length(); n str.length() str.length str for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			} int i = n-1; int i = n-1; i n-1 n 1 i >= 0 i 0 i-- i-- i {
				char t = str.charAt(i);
				System.out.print(t);
			} {
				char t = str.charAt(i);
				System.out.print(t);
			} char t = str.charAt(i); t str.charAt(i) str.charAt str i System.out.print(t) System.out.print System.out System System.out t System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			String str = scan.nextLine();
			int n = str.length();
			for(int i = n-1;i >= 0;i--){
				char t = str.charAt(i);
				System.out.print(t);
			}
			System.out.println();
		}
	}
}