import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    }
} Main public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    } main {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str; str int s; s str = scan.next() str scan.next() scan.next scan s = str.length() s str.length() str.length str for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   } int i= s-1 ; int i= s-1 ; i s-1 s 1 i>=0 i 0 i-- i-- i {
       char c = str.charAt(i);
       System.out.print(c);
   } {
       char c = str.charAt(i);
       System.out.print(c);
   } char c = str.charAt(i); c str.charAt(i) str.charAt str i System.out.print(c) System.out.print System.out System System.out c System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    }
} public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    String str;
    int s;
   
   
    str = scan.next();   
    s = str.length();
   for(int i= s-1 ; i>=0 ;i--){
       char c = str.charAt(i);
       System.out.print(c);
   }
   
   System.out.println();
    }
}