import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	}
} Main public static void main(String[] args) throws IOException {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	} main {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	} String str = "" str "" rts=""; rts "" BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); bf new BufferedReader(new InputStreamReader(System.in)) if((str=bf.readLine())==null)return; (str=bf.readLine())==null (str=bf.readLine()) str bf.readLine() bf.readLine bf null return; bf.close() bf.close bf for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i); int i=str.length()-1; int i=str.length()-1; i str.length()-1 str.length() str.length str 1 i>=0 i 0 i-- i-- i rts+=str.charAt(i); rts+=str.charAt(i) rts str.charAt(i) str.charAt str i System.out.println(rts) System.out.println System.out System System.out rts String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		String str = "",rts="";
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		if((str=bf.readLine())==null)return;
		bf.close();
		for(int i=str.length()-1;i>=0;i--)rts+=str.charAt(i);
		System.out.println(rts);
	}
}