import java.io.*;
//import java.math.BigDecimal;
//import java.lang.reflect.Array;
//import java.util.Arrays;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	}

} import java.io.*; io.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	} main {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	} try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		} Exception e {
			// TODO: handle exception
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int num = line.length(); num line.length() line.length line String x = ""; x "" for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
				x += line.charAt(num - i - 1);
			} {
				x += line.charAt(num - i - 1);
			} x += line.charAt(num - i - 1) x line.charAt(num - i - 1) line.charAt line num - i - 1 num - i - 1 num i 1 System.out.println(x.toString()) System.out.println System.out System System.out x.toString() x.toString x String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	}

} Main
import java.io.*;
//import java.math.BigDecimal;
//import java.lang.reflect.Array;
//import java.util.Arrays;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String line = br.readLine();
//			do {
//				String[] in = line.split(" ", 0);
//				//???????????????????¨????
//				
//				//???????????§??????
//				line = br.readLine();
//			} while (line != null);
			int num = line.length();
			String x = "";
			for(int i = 0; i < num; i++){
				x += line.charAt(num - i - 1);
			}
			System.out.println(x.toString());
		} catch (Exception e) {
			// TODO: handle exception
			System.exit(0);
		}

	}

}