import java.util.Scanner;

class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer buf = new StringBuffer(str);
		
		buf.reverse();
		str = buf.toString();
		
		System.out.println(str);
		scan.close();
	}
} 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 buf = new StringBuffer(str);
		
		buf.reverse();
		str = buf.toString();
		
		System.out.println(str);
		scan.close();
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer buf = new StringBuffer(str);
		
		buf.reverse();
		str = buf.toString();
		
		System.out.println(str);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer buf = new StringBuffer(str);
		
		buf.reverse();
		str = buf.toString();
		
		System.out.println(str);
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan StringBuffer buf = new StringBuffer(str); buf new StringBuffer(str) buf.reverse() buf.reverse buf str = buf.toString() str buf.toString() buf.toString buf System.out.println(str) System.out.println System.out System System.out str scan.close() scan.close scan 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 buf = new StringBuffer(str);
		
		buf.reverse();
		str = buf.toString();
		
		System.out.println(str);
		scan.close();
	}
}