import java.util.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException;
public class Main { public static void main(String args[]) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str; while((str=in.readLine())!=null){ StringBuffer sb = new StringBuffer(str); sb.reverse(); System.out.println(sb.toString()); } } }
/import java.util.; import java.io.*;
public class Solution { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; while((str=br.readLine())!=null){ StringBuffer sb = new StringBuffer(str); sb.reverse(); System.out.println(sb.toString()); } } }*/