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

public class Main{
	public static void main (String[] args) throws java.lang.Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main{
	public static void main (String[] args) throws java.lang.Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	}
} Main public static void main (String[] args) throws java.lang.Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuffer line = new StringBuffer(br.readLine()); line new StringBuffer(br.readLine()) System.out.println(line.reverse().toString()) System.out.println System.out System System.out line.reverse().toString() line.reverse().toString line.reverse() line.reverse line String[] args args public class Main{
	public static void main (String[] args) throws java.lang.Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	}
} public class Main{
	public static void main (String[] args) throws java.lang.Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main{
	public static void main (String[] args) throws java.lang.Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer line = new StringBuffer(br.readLine());
		
		System.out.println(line.reverse().toString());
	}
}