import java.util.Scanner; /* * System.in (java.io.InputStream) is the standard input * System.out (java.io.PrintStream) is the standard output */ public final class ReverseString { public static void main (final String[] args) { final Scanner stdin = new Scanner(System.in, "US-ASCII"); // Read the standard input stream line by line. while (stdin.hasNextLine()) { // There is another line in the input stream. final String line = stdin.nextLine(); // get the next line from input // Reverse the string final String revs = new StringBuilder(line).reverse().toString(); System.out.println(revs); // write the string to output } } }