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