import java.util.Scanner;
import java.lang.StringBuffer;

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

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