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

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
    	Scanner in = new Scanner(System.in);
		
		String input = in.next();
		String output = new String("");
		
		for(int i = input.length() - 1; i >= 0; i--){
			output = output.concat(input.substring(i, i+1));
		}

		System.out.println(output);		
	}
} import java.util.*; util.* java import java.lang.*; lang.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
    	Scanner in = new Scanner(System.in);
		
		String input = in.next();
		String output = new String("");
		
		for(int i = input.length() - 1; i >= 0; i--){
			output = output.concat(input.substring(i, i+1));
		}

		System.out.println(output);		
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
    	Scanner in = new Scanner(System.in);
		
		String input = in.next();
		String output = new String("");
		
		for(int i = input.length() - 1; i >= 0; i--){
			output = output.concat(input.substring(i, i+1));
		}

		System.out.println(output);		
	} main {
    	Scanner in = new Scanner(System.in);
		
		String input = in.next();
		String output = new String("");
		
		for(int i = input.length() - 1; i >= 0; i--){
			output = output.concat(input.substring(i, i+1));
		}

		System.out.println(output);		
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) String input = in.next(); input in.next() in.next in String output = new String(""); output new String("") for(int i = input.length() - 1; i >= 0; i--){
			output = output.concat(input.substring(i, i+1));
		} int i = input.length() - 1; int i = input.length() - 1; i input.length() - 1 input.length() input.length input 1 i >= 0 i 0 i-- i-- i {
			output = output.concat(input.substring(i, i+1));
		} {
			output = output.concat(input.substring(i, i+1));
		} output = output.concat(input.substring(i, i+1)) output output.concat(input.substring(i, i+1)) output.concat output input.substring(i, i+1) input.substring input i i+1 i 1 System.out.println(output) System.out.println System.out System System.out output String[] args args
import java.util.*;
import java.lang.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
    	Scanner in = new Scanner(System.in);
		
		String input = in.next();
		String output = new String("");
		
		for(int i = input.length() - 1; i >= 0; i--){
			output = output.concat(input.substring(i, i+1));
		}

		System.out.println(output);		
	}
}