publicclassMain{ publicstaticvoidmain(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); StringBuilder sb = n == 0 ? new StringBuilder("0") : new StringBuilder(); for (; n != 0; n /= 10) { sb.append((char)(n % 10 + 0x30)); } System.out.println(sb.toString()); } }