fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in = new Scanner(System.in);
  10. String c = in.nextLine();
  11. for (int i=c.length()-1; i >= 0; i--) {
  12. System.out.print(c.charAt(i));
  13. }
  14. }
  15. }
Success #stdin #stdout 0.07s 2184192KB
stdin
123123
stdout
321321