import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	} main {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s; s int x; x s=sc.nextLine() s sc.nextLine() sc.nextLine sc x=s.length() x s.length() s.length s char ch[]=s.toCharArray(); ch s.toCharArray() s.toCharArray s for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		} int i=x-1; int i=x-1; i x-1 x 1 i>=0 i 0 i-- i-- i {
			System.out.print(ch[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.print("\n") System.out.print System.out System System.out "\n" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s;
		int x;
		s=sc.nextLine();
		//System.out.println(s);
		x=s.length();
		//System.out.println(x);
		char ch[]=s.toCharArray();
		for(int i=x-1;i>=0;i--)
		{
			System.out.print(ch[i]);
		}
		System.out.print("\n");
			
		

	}

}