import java.util.*;
import java.lang.*;
import java.math.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.math.*; math.* java public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void run(){
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	} run {
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	} String str = sc.next(); str sc.next() sc.next sc String ret = ""; ret "" while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		} !str.isEmpty() str.isEmpty() str.isEmpty str {
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		} ret += str.charAt((str.length()-1)) ret str.charAt((str.length()-1)) str.charAt str (str.length()-1) str.length() str.length str 1 str = str.substring(0,str.length()-1) str str.substring(0,str.length()-1) str.substring str 0 str.length()-1 str.length() str.length str 1 System.out.println(ret) System.out.println System.out System System.out ret public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	} main {
		Main m = new Main();
		m.run();
		
	} Main m = new Main(); m new Main() m.run() m.run m String[] args args public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} Main
import java.util.*;
import java.lang.*;
import java.math.*;

public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		String str = sc.next();
		String ret = "";
		while(!str.isEmpty()){
			ret += str.charAt((str.length()-1));
			str = str.substring(0,str.length()-1);
		}
		System.out.println(ret);
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
}