import java.util.Scanner;

public class Main
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	}
} Main public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan char ch[] = str.toCharArray(); ch str.toCharArray() str.toCharArray str for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]); int i=ch.length-1; int i=ch.length-1; i ch.length-1 ch.length ch ch.length 1 i>=0 i 0 i-- i-- i System.out.print(ch[i]); System.out.print(ch[i]) System.out.print System.out System System.out ch[i] ch i System.out.println() System.out.println System.out System System.out String arg[] arg public class Main
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	}
} public class Main
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		char ch[] = str.toCharArray();
		for(int i=ch.length-1; i>=0; i--)
			System.out.print(ch[i]);
		System.out.println();

	}
}