import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        } catch(Exception ex){
            System.exit(0);
        } Exception ex {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        } StringBuilder sb = new StringBuilder(); sb new StringBuilder() String str = br.readLine(); str br.readLine() br.readLine br String[] s= str.split("",0); s str.split("",0) str.split str "" 0 for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            } int i=0; int i=0; i 0 i<s.length i s.length s s.length i++ i++ i {
                sb.append(s[s.length-1-i]);
            } {
                sb.append(s[s.length-1-i]);
            } sb.append(s[s.length-1-i]) sb.append sb s[s.length-1-i] s s.length-1-i s.length-1-i s.length s s.length 1 i System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            StringBuilder sb = new StringBuilder();
            String str = br.readLine();
            String[] s= str.split("",0);
            for(int i=0;i<s.length;i++){
                sb.append(s[s.length-1-i]);
            }
            System.out.println(sb);
        }catch(Exception ex){
            System.exit(0);
        }
    }
}