import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class Main{
    public static void main(String[] a) throws IOException{
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		StringBuffer str1 = new StringBuffer("");
		if(str != null && !str.isEmpty()) {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String[] a) throws IOException{
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		StringBuffer str1 = new StringBuffer("");
		if(str != null && !str.isEmpty()) {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		}
    }
} Main public static void main(String[] a) throws IOException{
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		StringBuffer str1 = new StringBuffer("");
		if(str != null && !str.isEmpty()) {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		}
    } main {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		StringBuffer str1 = new StringBuffer("");
		if(str != null && !str.isEmpty()) {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		}
    } BufferedReader br  = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br StringBuffer str1 = new StringBuffer(""); str1 new StringBuffer("") if(str != null && !str.isEmpty()) {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		} str != null && !str.isEmpty() str != null str null !str.isEmpty() str.isEmpty() str.isEmpty str {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		} int l =str.length(); l str.length() str.length str for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			} int i=l-1; int i=l-1; i l-1 l 1 i>=0 i 0 i-- i-- i {
				str1.append(str.charAt(i));
			} {
				str1.append(str.charAt(i));
			} str1.append(str.charAt(i)) str1.append str1 str.charAt(i) str.charAt str i System.out.println(str1) System.out.println System.out System System.out str1 String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class Main{
    public static void main(String[] a) throws IOException{
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		StringBuffer str1 = new StringBuffer("");
		if(str != null && !str.isEmpty()) {
			int l =str.length();
			for(int i=l-1;i>=0;i--) {
				str1.append(str.charAt(i));
			}
			System.out.println(str1);
		}
    }
}