import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  }

} Main public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  } main {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String revStr = ""; revStr "" while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    } input.ready() input.ready input {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    } char[] str = input.readLine().toCharArray(); str input.readLine().toCharArray() input.readLine().toCharArray input.readLine() input.readLine input for (char ch : str) {
        revStr = ch + revStr;
      } char ch str {
        revStr = ch + revStr;
      } {
        revStr = ch + revStr;
      } revStr = ch + revStr revStr ch + revStr ch revStr System.out.println(revStr) System.out.println System.out System System.out revStr String[] args args public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  }

} public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    String revStr = "";
    while (input.ready()) {
      char[] str = input.readLine().toCharArray();
      for (char ch : str) {
        revStr = ch + revStr;
      }
      System.out.println(revStr);
    }
  }

}