import java.util.Scanner; public class InputSample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); StringBuffer a =new StringBuffer(str); System.out.println(a.reverse()); scan.close(); } }