import java.util.*;
import java.lang.*;
class Demo{
public static void main(String[] args){
String s = "brock";
StringBuilder sb = new StringBuilder(s);
sb.reverse();
System.out.println(sb.toString());
}
}
import java.util.*;
import java.lang.*;
class Demo{
public static void main(String[] args){
String s = "brock";
StringBuilder sb = new StringBuilder(s);
sb.reverse();
System.out.println(sb.toString());
}
}