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


public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	}

} 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 NumberFormatException, IOException {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	} main {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	} BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in)); bufReader new BufferedReader(new InputStreamReader(System.in)) String str = bufReader.readLine(); str bufReader.readLine() bufReader.readLine bufReader char[] strChars = str.toCharArray(); strChars str.toCharArray() str.toCharArray str for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		} int i = 0; int i = 0; i 0 i < str.length()/2 i str.length()/2 str.length() str.length str 2 i++ i++ i {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		} {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		} char left = strChars[i]; left strChars[i] strChars i char right = strChars[str.length() - i - 1]; right strChars[str.length() - i - 1] strChars str.length() - i - 1 str.length() - i - 1 str.length() str.length str i 1 strChars[i] = right strChars[i] strChars i right strChars[str.length() - i - 1] = left strChars[str.length() - i - 1] strChars str.length() - i - 1 str.length() - i - 1 str.length() str.length str i 1 left String result = new String(strChars); result new String(strChars) System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	}

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


public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader bufReader =
				new BufferedReader(new InputStreamReader(System.in));
		String str = bufReader.readLine();
		char[] strChars = str.toCharArray();
		for (int i = 0; i < str.length()/2; i++) {
			char left = strChars[i];
			char right = strChars[str.length() - i - 1];
			strChars[i] = right;
			strChars[str.length() - i - 1] = left;
		}
		String result = new String(strChars);
		System.out.println(result);
	}

}