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

public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  }
} 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 {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  }
} Main public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  } main {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  } try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    } {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) char[] charStr = br.readLine().toCharArray(); charStr br.readLine().toCharArray() br.readLine().toCharArray br.readLine() br.readLine br StringBuilder rvsStr = new StringBuilder(); rvsStr new StringBuilder() for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]); int i=charStr.length-1; int i=charStr.length-1; i charStr.length-1 charStr.length charStr charStr.length 1 i>-1 i -1 1 i-- i-- i rvsStr.append(charStr[i]); rvsStr.append(charStr[i]) rvsStr.append rvsStr charStr[i] charStr i System.out.println(rvsStr) System.out.println System.out System System.out rvsStr String[] args args public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  }
} public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {
    
    try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

      char[] charStr = br.readLine().toCharArray();
      StringBuilder rvsStr = new StringBuilder();
      for(int i=charStr.length-1; i>-1; i--)
        rvsStr.append(charStr[i]);

      System.out.println(rvsStr);
    }
  }
}
