import java.util.Scanner; public class Reverse { public static void main(String[] args) { Scanner scanner = new Scanner(System.in,"UTF8"); String S = scanner.nextLine(); StringBuilder sb = new StringBuilder(S); sb.reverse().toString(); System.out.println(sb); scanner.close(); } }