import java.util.Scanner;

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

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