import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  }
} Main public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  } main {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) String str = s.next(); str s.next() s.next s char[] chars = str.toCharArray(); chars str.toCharArray() str.toCharArray str for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    } int i = chars.length -1; int i = chars.length -1; i chars.length -1 chars.length chars chars.length 1 i >= 0 i 0 i-- i-- i {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    } {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    } System.out.print(chars[i]) System.out.print System.out System System.out chars[i] chars i if (i == 0) {
        System.out.print("\n");
      } i == 0 i 0 {
        System.out.print("\n");
      } System.out.print("\n") System.out.print System.out System System.out "\n" String[] args args public class Main{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  }
} public class Main{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String str = s.next();
    char[] chars = str.toCharArray();
    for (int i = chars.length -1; i >= 0; i--) {
      System.out.print(chars[i]);
      if (i == 0) {
        System.out.print("\n");
      }   
    }   
  }
}