import java.util.*;

class Main {
  public static void main (String[] args) {
    Scanner scanner = new Scanner(System.in);
    while (scanner.hasNext()) {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    }
  }
} import java.util.*; util.* java class Main {
  public static void main (String[] args) {
    Scanner scanner = new Scanner(System.in);
    while (scanner.hasNext()) {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    }
  }
} Main public static void main (String[] args) {
    Scanner scanner = new Scanner(System.in);
    while (scanner.hasNext()) {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    while (scanner.hasNext()) {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    } scanner.hasNext() scanner.hasNext scanner {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    } StringBuffer sb = new StringBuffer(scanner.next()); sb new StringBuffer(scanner.next()) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String[] args args
import java.util.*;

class Main {
  public static void main (String[] args) {
    Scanner scanner = new Scanner(System.in);
    while (scanner.hasNext()) {
      StringBuffer sb = new StringBuffer(scanner.next());
      System.out.println(sb.reverse());
    }
  }
}