import java.util.*;
class HelloWorld {
public static void main(String[] args) {
System.out.println("Please enter a string: ");
Scanner idx = new Scanner(System.in);
String f = idx.nextLine(),n="";
int c=0;
while(c<f.length()) {
char temp = f.charAt(c);
n=temp+n;
c++;
}
System.out.println("Reversed: "+n);
}
}