import java.util.Scanner;

/**
 * Created by Reopard on 2014/05/06.
 */
public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    }
} Main public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    } main {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String line = scanner.next(); line scanner.next() scanner.next scanner char tmp[] = line.toCharArray(); tmp line.toCharArray() line.toCharArray line char answer[] = new char[20]; answer new char[20] 20 for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)]; int i = 0; int i = 0; i 0 i < tmp.length i tmp.length tmp tmp.length i++ i++ i answer[i] = tmp[tmp.length-(i+1)]; answer[i] = tmp[tmp.length-(i+1)] answer[i] answer i tmp[tmp.length-(i+1)] tmp tmp.length-(i+1) tmp.length tmp tmp.length (i+1) i 1 line = String.valueOf(answer) line String.valueOf(answer) String.valueOf String answer System.out.println(line) System.out.println System.out System System.out line String args[] args public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    }
} Main
import java.util.Scanner;

/**
 * Created by Reopard on 2014/05/06.
 */
public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.next();
        char tmp[] = line.toCharArray();
        char answer[] = new char[20];
        for(int i = 0; i < tmp.length; i++) answer[i] = tmp[tmp.length-(i+1)];
        line = String.valueOf(answer);
        System.out.println(line);
    }
}