import java.io.*;
import java.util.*;
class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder(br.readLine());
        System.out.println(sb.reverse().toString());
    }
    
} import java.io.*; io.* java import java.util.*; util.* java class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder(br.readLine());
        System.out.println(sb.reverse().toString());
    }
    
} Main public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder(br.readLine());
        System.out.println(sb.reverse().toString());
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder(br.readLine());
        System.out.println(sb.reverse().toString());
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb=new StringBuilder(br.readLine()); sb new StringBuilder(br.readLine()) 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.io.*;
import java.util.*;
class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder(br.readLine());
        System.out.println(sb.reverse().toString());
    }
    
}