import java.util.*;

public class Main 
{
	public static void main(String[] args) 
	{
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	}
} import java.util.*; util.* java public class Main 
{
	public static void main(String[] args) 
	{
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	}
} Main public static void main(String[] args) 
	{
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	} main {
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String str = stdIn.next(); str stdIn.next() stdIn.next stdIn int size = str.length(); size str.length() str.length str for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		} int i = size - 1; int i = size - 1; i size - 1 size 1 i >= 0 i 0 --i --i i {
			System.out.print(str.charAt(i));
		} {
			System.out.print(str.charAt(i));
		} System.out.print(str.charAt(i)) System.out.print System.out System System.out str.charAt(i) str.charAt str i System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main 
{
	public static void main(String[] args) 
	{
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	}
} public class Main 
{
	public static void main(String[] args) 
	{
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	}
} Main
import java.util.*;

public class Main 
{
	public static void main(String[] args) 
	{
		Scanner stdIn = new Scanner(System.in);
		String str = stdIn.next();
		int size = str.length();
		for(int i = size - 1; i >= 0; --i)
		{
			System.out.print(str.charAt(i));
		}
		System.out.println("");
	}
}