import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	}
}
 import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	}
} Main public static void main(String[] args) {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	} main {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	} try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  } {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) StringBuffer str=new StringBuffer(sc.nextLine()); str new StringBuffer(sc.nextLine()) StringBuffer ans=str.reverse(); ans str.reverse() str.reverse str System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args) {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	}
} public class Main{
	public static void main(String[] args) {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		  try(Scanner sc = new Scanner(System.in)) {
			  StringBuffer str=new StringBuffer(sc.nextLine());
			  StringBuffer ans=str.reverse();
			  System.out.println(ans);
		  }
	}
}

