import java.util.Scanner;

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

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

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

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

} Main
import java.util.Scanner;

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

}