import java.util.Scanner;
import java.lang.*;

public class Main{

	public static String reverse(String str){
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		}

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	}

} import java.util.Scanner; Scanner java.util import java.lang.*; lang.* java public class Main{

	public static String reverse(String str){
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		}

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	}

} Main public static String reverse(String str){
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		} reverse {
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		} if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			} str.length() == 1 str.length() str.length str 1 {
				return str;
			} return str; str {
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			} return  reverse(str.substring(1)) + str.substring(0,1); reverse(str.substring(1)) + str.substring(0,1) reverse(str.substring(1)) reverse str.substring(1) str.substring str 1 str.substring(0,1) str.substring str 0 1 String str str public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan str = reverse(str) str reverse(str) reverse str System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main{

	public static String reverse(String str){
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		}

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	}

} public class Main{

	public static String reverse(String str){
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		}

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	}

} Main
import java.util.Scanner;
import java.lang.*;

public class Main{

	public static String reverse(String str){
		
			if(str.length() == 1){
				return str;
			}else{
				
				return  reverse(str.substring(1)) + str.substring(0,1);
				
			}
		
		}

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		
		str = reverse(str);
		
		System.out.println(str);
		
		
		
	}

}