import java.util.Scanner;
import java.lang.StringBuilder;

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

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