
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException
    {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.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
    {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.reverse());
    }
} Main public static void main(String[] args) throws IOException
    {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.reverse());
    } main {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.reverse());
    } StringBuffer sBuffer = new StringBuffer(); sBuffer new StringBuffer() BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in)); bReader new BufferedReader(new InputStreamReader(System.in)) String str = bReader.readLine(); str bReader.readLine() bReader.readLine bReader sBuffer.append(str) sBuffer.append sBuffer str System.out.println(sBuffer.reverse()) System.out.println System.out System System.out sBuffer.reverse() sBuffer.reverse sBuffer String[] args args public class Main {
    public static void main(String[] args) throws IOException
    {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.reverse());
    }
} public class Main {
    public static void main(String[] args) throws IOException
    {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.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
    {
        StringBuffer sBuffer = new StringBuffer();
        BufferedReader bReader = 
                new BufferedReader(new InputStreamReader(System.in));
        
        String str = bReader.readLine();
        sBuffer.append(str);
        System.out.println(sBuffer.reverse());
    }
}