import java.util.*;
public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  }
} import java.util.*; util.* java public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  }
} Main public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  } main {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc String output; output char [] str = input.toCharArray(); str input.toCharArray() input.toCharArray input char con; con for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    } int i = 0; int i = 0; i 0 i < str.length / 2 i str.length / 2 str.length str str.length 2 i++ i++ i {
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    } {
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    } con = str[i] con str[i] str i str[i] = str[str.length - 1 - i] str[i] str i str[str.length - 1 - i] str str.length - 1 - i str.length - 1 - i str.length str str.length 1 i str[str.length - 1 - i] = con str[str.length - 1 - i] str str.length - 1 - i str.length - 1 - i str.length str str.length 1 i con System.out.println(String.valueOf(str)) System.out.println System.out System System.out String.valueOf(str) String.valueOf String str String [] args args public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  }
} public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  }
} Main
import java.util.*;
public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    String output;
    char [] str = input.toCharArray();
    char con;
    for(int i = 0;i < str.length / 2;i++){
      con = str[i];
      str[i] = str[str.length - 1 - i];
      str[str.length - 1 - i] = con;
    }
    System.out.println(String.valueOf(str));
  }
}