import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    }
 
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    }
 
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = br.readLine(); input br.readLine() br.readLine br System.out.println(new StringBuffer(input).reverse()) System.out.println System.out System System.out new StringBuffer(input).reverse() new StringBuffer(input).reverse new StringBuffer(input) String[] args args public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    }
 
} public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    }
 
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = br.readLine();
        System.out.println(new StringBuffer(input).reverse());
    }
 
}