import java.util.Scanner;
public class Main
{
	public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	}
} Main public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	} main {
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder st=new StringBuilder(sc.next()); st new StringBuilder(sc.next()) System.out.println(st.reverse()) System.out.println System.out System System.out st.reverse() st.reverse st String arg[] arg public class Main
{
	public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	}
} public class Main
{
	public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		StringBuilder st=new StringBuilder(sc.next());
		System.out.println(st.reverse());
	}
}