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

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  }

  public static String reverse(String str) {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  }
  
} 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 reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  }

  public static String reverse(String str) {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  }
  
} Main public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String readStr = reader.readLine(); readStr reader.readLine() reader.readLine reader System.out.println(reverse(readStr)) System.out.println System.out System System.out reverse(readStr) reverse readStr String[] args args public static String reverse(String str) {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  } reverse {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  } char[] strChars = str.toCharArray(); strChars str.toCharArray() str.toCharArray str for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    } int i = 0; int i = 0; i 0 i < strChars.length / 2 i strChars.length / 2 strChars.length strChars strChars.length 2 i++ i++ i {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    } {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    } char stack = strChars[i]; stack strChars[i] strChars i strChars[i] = strChars[strChars.length-1-i] strChars[i] strChars i strChars[strChars.length-1-i] strChars strChars.length-1-i strChars.length-1-i strChars.length strChars strChars.length 1 i strChars[strChars.length-1-i] = stack strChars[strChars.length-1-i] strChars strChars.length-1-i strChars.length-1-i strChars.length strChars strChars.length 1 i stack return new String(strChars); new String(strChars) String str str public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  }

  public static String reverse(String str) {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  }
  
} public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  }

  public static String reverse(String str) {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  }
  
} 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 reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr = reader.readLine();
    System.out.println(reverse(readStr));
  }

  public static String reverse(String str) {
    char[] strChars = str.toCharArray();
    
    for (int i = 0; i < strChars.length / 2; i++) {
      char stack = strChars[i];
      strChars[i] = strChars[strChars.length-1-i];
      strChars[strChars.length-1-i] = stack;
    }
    return new String(strChars);
  }
  
}