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

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    }

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

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    }

} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        } int i = 0; int i = 0; i 0 i < line.length() i line.length() line.length line i++ i++ i {
            System.out.print(line.charAt(line.length()-i-1));
        } {
            System.out.print(line.charAt(line.length()-i-1));
        } System.out.print(line.charAt(line.length()-i-1)) System.out.print System.out System System.out line.charAt(line.length()-i-1) line.charAt line line.length()-i-1 line.length()-i-1 line.length() line.length line i 1 System.out.println() System.out.println System.out System System.out String[] args args public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    }

} public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    }

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

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();

        for(int i = 0; i < line.length(); i++){
            System.out.print(line.charAt(line.length()-i-1));
        }

        System.out.println();
    }

}