import java.io.BufferedReader;
import java.io.InputStreamReader;



public class Main {
	public static void main(String[] args){
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args){
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	}
} Main public static void main(String[] args){
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	} main {
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	} StringBuilder sb = new StringBuilder(); sb new StringBuilder() try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){} catch (Exception e){} Exception e {} {
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine()) sb.append sb new BufferedReader(new InputStreamReader(System.in)).readLine() new BufferedReader(new InputStreamReader(System.in)).readLine new BufferedReader(new InputStreamReader(System.in)) sb.reverse() sb.reverse sb System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {
	public static void main(String[] args){
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	}
} public class Main {
	public static void main(String[] args){
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;



public class Main {
	public static void main(String[] args){
		StringBuilder sb = new StringBuilder();
		try{
		sb.append(new BufferedReader(new InputStreamReader(System.in)).readLine());
		} catch (Exception e){}
		sb.reverse();
		System.out.println(sb.toString());
	}
}