import java.io.*;
 
public class Main{
    public static void main(String[] argv) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    }
} import java.io.*; io.* java public class Main{
    public static void main(String[] argv) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    }
} Main public static void main(String[] argv) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        } StringBuffer reverse = new StringBuffer().append(line); reverse new StringBuffer().append(line) new StringBuffer().append new StringBuffer() line System.out.print(reverse.reverse()+"\n") System.out.print System.out System System.out reverse.reverse()+"\n" reverse.reverse() reverse.reverse reverse "\n" String[] argv argv public class Main{
    public static void main(String[] argv) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    }
} public class Main{
    public static void main(String[] argv) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    }
} Main
import java.io.*;
 
public class Main{
    public static void main(String[] argv) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            StringBuffer reverse = new StringBuffer().append(line);
            System.out.print(reverse.reverse()+"\n");
        }
    }
}