import java.util.; import java.io.; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str = in.readLine(); StringBuilder s = new StringBuilder(); for(int i = str.length()-1;i>=0;i--){ s.append(str.charAt(i)); } System.out.println(s.toString()); } }