import java.util.Scanner;

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

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[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.next();

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[i]);

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

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[i]);

		System.out.println();
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[i]);

		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 box[] = new String[str.length()]; box new String[str.length()] str.length() str.length str for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		} int i=0; int i=0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
			box[i]=String.valueOf(str.charAt(i));
		} {
			box[i]=String.valueOf(str.charAt(i));
		} box[i]=String.valueOf(str.charAt(i)) box[i] box i String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i String rebox[] = new String[str.length()]; rebox new String[str.length()] str.length() str.length str for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i]; int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i rebox[i] =box[str.length()-1-i]; rebox[i] =box[str.length()-1-i] rebox[i] rebox i box[str.length()-1-i] box str.length()-1-i str.length()-1-i str.length() str.length str 1 i for(int i=0; i<str.length(); i++)
			System.out.print(rebox[i]); int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i System.out.print(rebox[i]); System.out.print(rebox[i]) System.out.print System.out System System.out rebox[i] rebox 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.next();

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[i]);

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

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[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.next();

		String box[] = new String[str.length()];

		for(int i=0; i < str.length(); i++)
		{
			box[i]=String.valueOf(str.charAt(i));
		}

		String rebox[] = new String[str.length()];

		for(int i=0; i<str.length(); i++)
			rebox[i] =box[str.length()-1-i];

		for(int i=0; i<str.length(); i++)
			System.out.print(rebox[i]);

		System.out.println();
	}
}