import java.io.*;
import java.util.*;
import java.lang.*;

class Main{
		public static void main(String args[]) throws IOException{
			Scanner scan = new Scanner(System.in);
			char[] buf = new char[20];

			int n1,n2;
			while(scan.hasNext()){
				String str1 = scan.next();
				buf = str1.toCharArray();
			}
			for(int i = buf.length-1;i>=0;i--){
				System.out.print(buf[i]);
			}
			System.out.print("\n");
	}
} import java.io.*; io.* java import java.util.*; util.* java import java.lang.*; lang.* java class Main{
		public static void main(String args[]) throws IOException{
			Scanner scan = new Scanner(System.in);
			char[] buf = new char[20];

			int n1,n2;
			while(scan.hasNext()){
				String str1 = scan.next();
				buf = str1.toCharArray();
			}
			for(int i = buf.length-1;i>=0;i--){
				System.out.print(buf[i]);
			}
			System.out.print("\n");
	}
} Main public static void main(String args[]) throws IOException{
			Scanner scan = new Scanner(System.in);
			char[] buf = new char[20];

			int n1,n2;
			while(scan.hasNext()){
				String str1 = scan.next();
				buf = str1.toCharArray();
			}
			for(int i = buf.length-1;i>=0;i--){
				System.out.print(buf[i]);
			}
			System.out.print("\n");
	} main {
			Scanner scan = new Scanner(System.in);
			char[] buf = new char[20];

			int n1,n2;
			while(scan.hasNext()){
				String str1 = scan.next();
				buf = str1.toCharArray();
			}
			for(int i = buf.length-1;i>=0;i--){
				System.out.print(buf[i]);
			}
			System.out.print("\n");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) char[] buf = new char[20]; buf new char[20] 20 int n1 n1 n2; n2 while(scan.hasNext()){
				String str1 = scan.next();
				buf = str1.toCharArray();
			} scan.hasNext() scan.hasNext scan {
				String str1 = scan.next();
				buf = str1.toCharArray();
			} String str1 = scan.next(); str1 scan.next() scan.next scan buf = str1.toCharArray() buf str1.toCharArray() str1.toCharArray str1 for(int i = buf.length-1;i>=0;i--){
				System.out.print(buf[i]);
			} int i = buf.length-1; int i = buf.length-1; i buf.length-1 buf.length buf buf.length 1 i>=0 i 0 i-- i-- i {
				System.out.print(buf[i]);
			} {
				System.out.print(buf[i]);
			} System.out.print(buf[i]) System.out.print System.out System System.out buf[i] buf i System.out.print("\n") System.out.print System.out System System.out "\n" String args[] args
import java.io.*;
import java.util.*;
import java.lang.*;

class Main{
		public static void main(String args[]) throws IOException{
			Scanner scan = new Scanner(System.in);
			char[] buf = new char[20];

			int n1,n2;
			while(scan.hasNext()){
				String str1 = scan.next();
				buf = str1.toCharArray();
			}
			for(int i = buf.length-1;i>=0;i--){
				System.out.print(buf[i]);
			}
			System.out.print("\n");
	}
}