import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		String str;
		Scanner scan=new Scanner(System.in);
		str=scan.next();
		scan.close();
		for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		}
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		String str;
		Scanner scan=new Scanner(System.in);
		str=scan.next();
		scan.close();
		for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		}
		System.out.println();
	}
} Main public static void main(String[] args)
	{
		String str;
		Scanner scan=new Scanner(System.in);
		str=scan.next();
		scan.close();
		for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		}
		System.out.println();
	} main {
		String str;
		Scanner scan=new Scanner(System.in);
		str=scan.next();
		scan.close();
		for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		}
		System.out.println();
	} String str; str Scanner scan=new Scanner(System.in); scan new Scanner(System.in) str=scan.next() str scan.next() scan.next scan scan.close() scan.close scan for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		} int i=str.length()-1; int i=str.length()-1; i str.length()-1 str.length() str.length str 1 0<=i 0 i 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)
	{
		String str;
		Scanner scan=new Scanner(System.in);
		str=scan.next();
		scan.close();
		for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		}
		System.out.println();
	}
} public class Main
{
	public static void main(String[] args)
	{
		String str;
		Scanner scan=new Scanner(System.in);
		str=scan.next();
		scan.close();
		for(int i=str.length()-1;0<=i;i--){
			System.out.print(str.charAt(i));
		}
		System.out.println();
	}
} Main
import java.util.Scanner;

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