import java.util.Scanner;

public class Main {
	public static void main(String[]args){
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args){
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		}
} Main public static void main(String[]args){
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		} main {
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str=scan.next(); str scan.next() scan.next scan StringBuffer sb = new StringBuffer(str); sb new StringBuffer(str) String hantai = sb.reverse().toString(); hantai sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb System.out.println(hantai) System.out.println System.out System System.out hantai String[]args args public class Main {
	public static void main(String[]args){
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		}
} public class Main {
	public static void main(String[]args){
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[]args){
			Scanner scan = new Scanner(System.in);
			//System.out.println("??\???");
			String str=scan.next();
			StringBuffer sb = new StringBuffer(str);
			String hantai = sb.reverse().toString();
			System.out.println(hantai);
			
		
		}
}