import java.util.Scanner;
public class Main {
	public static void main(String[] a){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] a){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	}
} Main public static void main(String[] a){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	} main {
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	} Scanner s=new Scanner(System.in); s new Scanner(System.in) String str=s.next(); str s.next() s.next s StringBuffer sb=new StringBuffer(str); sb new StringBuffer(str) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String[] a a public class Main {
	public static void main(String[] a){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	}
} public class Main {
	public static void main(String[] a){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] a){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		StringBuffer sb=new StringBuffer(str);
		System.out.println(sb.reverse());
	}
}