import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class StringReverseInPlace
{
static char[] reverse(char[] name, int len) {
// int l = name.length();
int j,i = 0;
char temp;
for(i = 0, j = len; i < j; i++,j--) {
temp = name[i]; //swapping
name[i] = name[j];
name[j] = temp;
}
return name;
}
public static void main
(String[] args
) {
System.
out.
println(reverse
(name.
toCharArray(), name.
length()-1)); }
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIFN0cmluZ1JldmVyc2VJblBsYWNlCnsKCXN0YXRpYyBjaGFyW10gcmV2ZXJzZShjaGFyW10gbmFtZSwgaW50IGxlbikgewovLwlpbnQgbCA9IG5hbWUubGVuZ3RoKCk7CgkJaW50IGosaSA9IDA7CgkJY2hhciB0ZW1wOwoJCWZvcihpID0gMCwgaiA9IGxlbjsgaSA8IGo7IGkrKyxqLS0pIHsKCQkJdGVtcCA9IG5hbWVbaV07CS8vc3dhcHBpbmcKCQkJbmFtZVtpXSA9IG5hbWVbal07CgkJCW5hbWVbal0gPSB0ZW1wOwoJCQl9CgkJcmV0dXJuIG5hbWU7Cgl9CgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQoJewkKCQlTdHJpbmcgbmFtZSA9ICJwcmFrYXNoIjsKCQlTeXN0ZW0ub3V0LnByaW50bG4ocmV2ZXJzZShuYW1lLnRvQ2hhckFycmF5KCksIG5hbWUubGVuZ3RoKCktMSkpOwoJfQp9Cg==