import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s=r.readLine();
		try {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} catch (Exception err) {
			System.exit(0);
		}
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s=r.readLine();
		try {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} catch (Exception err) {
			System.exit(0);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s=r.readLine();
		try {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} catch (Exception err) {
			System.exit(0);
		}
	} main {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s=r.readLine();
		try {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} catch (Exception err) {
			System.exit(0);
		}
	} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) String s=r.readLine(); s r.readLine() r.readLine r try {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} catch (Exception err) {
			System.exit(0);
		} catch (Exception err) {
			System.exit(0);
		} Exception err {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			} int i=s.length()-1; int i=s.length()-1; i s.length()-1 s.length() s.length s 1 i>=0 i 0 i-- i-- i {
				System.out.print(s.charAt(i));
			} {
				System.out.print(s.charAt(i));
			} System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i System.out.println("") System.out.println System.out System System.out "" String[] args args
import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s=r.readLine();
		try {
			for(int i=s.length()-1;i>=0;i--){
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} catch (Exception err) {
			System.exit(0);
		}
	}
}