import java.util.*; public class Main { public static void main(String [] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()) { String str=sc.next(); for(int i=str.length()-1;i>=0;i--) { String s=""+str.charAt(i); System.out.print(s); } System.out.println(); } } }
import java.util.*; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); List<String> list = new ArrayList<String>(); StringBuffer sb = new StringBuffer(); while(in.hasNext()){ String str = in.nextline(); for(int i=0; i<str.length(); i++){ list.add(str.substring(i,i+1)); } for(int i=list.size()-1; i>=0; i--){ sb.append(list.get(i)); } String res = sb.toString(); System.out.println(res); } } }
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNext()) {
StringBuilder sb = new StringBuilder(scan.nextLine());
String out = sb.reverse().toString();
System.out.println(out);
}
}
}
public class Main { public void doSome(String string){ for(int i=string.length()-1;i>=0;i--){ System.out.print(string.charAt(i)); if(i==0){ System.out.println(); } } } public static void main(String[] args) { Scanner s=new Scanner(System.in); String input=""; Main m=new Main(); while(true){ input=s.nextLine(); m.doSome(input); } } }