import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { mm(); } static String mm(){ String name; name = sc.next(); StringBuffer sb = new StringBuffer(name); name = sb.reverse().toString(); System.out.println(name); return name; } }