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

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
    	String str = scan.next();

    	String[] strArraySub = str.split("");
    	int sval;
    	int val = strArraySub.length;
    	//System.out.println(val);
    	for (int i = 1; i <= val; i++) {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		}System.out.println("");
 
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
    	String str = scan.next();

    	String[] strArraySub = str.split("");
    	int sval;
    	int val = strArraySub.length;
    	//System.out.println(val);
    	for (int i = 1; i <= val; i++) {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		}System.out.println("");
 
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
    	String str = scan.next();

    	String[] strArraySub = str.split("");
    	int sval;
    	int val = strArraySub.length;
    	//System.out.println(val);
    	for (int i = 1; i <= val; i++) {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		}System.out.println("");
 
	} main {
		Scanner scan = new Scanner(System.in);
    	String str = scan.next();

    	String[] strArraySub = str.split("");
    	int sval;
    	int val = strArraySub.length;
    	//System.out.println(val);
    	for (int i = 1; i <= val; i++) {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		}System.out.println("");
 
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan String[] strArraySub = str.split(""); strArraySub str.split("") str.split str "" int sval; sval int val = strArraySub.length; val strArraySub.length strArraySub strArraySub.length for (int i = 1; i <= val; i++) {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		} int i = 1; int i = 1; i 1 i <= val i val i++ i++ i {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		} {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		} sval = val - i sval val - i val i System.out.print(strArraySub[sval]) System.out.print System.out System System.out strArraySub[sval] strArraySub sval System.out.println("") System.out.println System.out System System.out "" String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
    	String str = scan.next();

    	String[] strArraySub = str.split("");
    	int sval;
    	int val = strArraySub.length;
    	//System.out.println(val);
    	for (int i = 1; i <= val; i++) {
    		// "strArraySub"???1??????????????¨???
    		sval = val - i;
    		System.out.print(strArraySub[sval]);
    		
		}System.out.println("");
 
	}
}