import java.util.Scanner;


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


public class Main 
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		String in = scanner.next();
		String out = "";
		
		for(int i=in.length(); i>0; i--)
		{
			out += in.substring(i-1, i);
		}
		System.out.println(out);
	}
}