import java.util.*;

//Reverse Sequence
public class Main{

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	} main {
		Scanner sc = new Scanner(System.in);
		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder s = new StringBuilder(sc.next()); s new StringBuilder(sc.next()) System.out.println(s.reverse()) System.out.println System.out System System.out s.reverse() s.reverse s String[] args args public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}
} public class Main{

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

//Reverse Sequence
public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}
}