import java.util.Scanner;

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

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