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

public class Main {
  public static void main(String[]args) throws IOException {
    BufferedReader b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  }
  
  static void swap(int i, int j, char[]a) {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  }
} 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 b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  }
  
  static void swap(int i, int j, char[]a) {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  }
} Main public static void main(String[]args) throws IOException {
    BufferedReader b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  } main {
    BufferedReader b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  } BufferedReader b= new BufferedReader(new InputStreamReader(System.in)); b new BufferedReader(new InputStreamReader(System.in)) String s; s while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    } (s = b.readLine()) != null (s = b.readLine()) s b.readLine() b.readLine b null {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    } char[]a = s.toCharArray(); a s.toCharArray() s.toCharArray s for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      } int i = 0; int i = 0; i 0 i < a.length/2 i a.length/2 a.length a a.length 2 i++ i++ i {
        swap(i, a.length-i-1, a);
      } {
        swap(i, a.length-i-1, a);
      } swap(i, a.length-i-1, a) swap i a.length-i-1 a.length-i-1 a.length a a.length i 1 a System.out.println(String.valueOf(a)) System.out.println System.out System System.out String.valueOf(a) String.valueOf String a String[]args args static void swap(int i, int j, char[]a) {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  } swap {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  } char temp = a[i]; temp a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = temp a[j] a j temp int i i int j j char[]a a public class Main {
  public static void main(String[]args) throws IOException {
    BufferedReader b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  }
  
  static void swap(int i, int j, char[]a) {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  }
} public class Main {
  public static void main(String[]args) throws IOException {
    BufferedReader b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  }
  
  static void swap(int i, int j, char[]a) {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  }
} 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 b= new BufferedReader(new InputStreamReader(System.in));
    String s;
    
    while ((s = b.readLine()) != null) {
      char[]a = s.toCharArray();
      for (int i = 0; i < a.length/2; i++) {
        swap(i, a.length-i-1, a);
      }
      System.out.println(String.valueOf(a));
    }
  }
  
  static void swap(int i, int j, char[]a) {
    char temp = a[i];
    a[i] = a[j];
    a[j] = temp;
  }
}