import java.util.*;
import java.io.*;

public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	}
} Main public static void main(String[] args) throws Exception{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String line = in.readLine(); line in.readLine() in.readLine in StringTokenizer tk = new StringTokenizer(line); tk new StringTokenizer(line) String toReverse = tk.nextToken(); toReverse tk.nextToken() tk.nextToken tk char[] revArray = new char[toReverse.length()]; revArray new char[toReverse.length()] toReverse.length() toReverse.length toReverse for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		} int i = 0; int i = 0; i 0 i < toReverse.length() i toReverse.length() toReverse.length toReverse i++ i++ i {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		} {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		} revArray[toReverse.length()-1-i] = toReverse.charAt(i) revArray[toReverse.length()-1-i] revArray toReverse.length()-1-i toReverse.length()-1-i toReverse.length() toReverse.length toReverse 1 i toReverse.charAt(i) toReverse.charAt toReverse i System.out.println(new String(revArray)) System.out.println System.out System System.out new String(revArray) String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	}
} Main
import java.util.*;
import java.io.*;

public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = in.readLine();
		StringTokenizer tk = new StringTokenizer(line);
		String toReverse = tk.nextToken();
		char[] revArray = new char[toReverse.length()];
		for (int i = 0; i < toReverse.length(); i++) {
			revArray[toReverse.length()-1-i] = toReverse.charAt(i);
		}
		System.out.println(new String(revArray));
	}
}