import java.util.Scanner; public class Main { private final static Main main = new Main(); public static void main(String[] args) { long l = System.currentTimeMillis(); main.solve(); //System.out.println("処理時間:" + (System.currentTimeMillis() - l)); } private void solve() { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); for(int i=s.length()-1; i>=0; --i) { System.out.print(s.charAt(i)); } System.out.println(); } }