/*
* 解题思路:
* 1. StringBuffer().reverse()
* 2. 逆序循环遍历
*/
import java.util.*;
public class Main {
public static void main(String[] args) {
String str = (new Scanner(System.in).nextLine());
for (int i = str.length() - 1; i >= 0; i--) {
System.out.print(str.charAt(i));
}
}
} 


京公网安备 11010502036488号