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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	}
} 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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] chara = str.split("", 0); chara str.split("", 0) str.split str "" 0 int length = chara.length; length chara.length chara chara.length for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		} int i = 0; int i = 0; i 0 i <= length / 2 i length / 2 length 2 i++ i++ i {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		} {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		} int j = length - i - 1; j length - i - 1 length - i - 1 length i 1 if (i >= j) {
				break;
			} i >= j i j {
				break;
			} break; String temporary = chara[i]; temporary chara[i] chara i chara[i] = chara[j] chara[i] chara i chara[j] chara j chara[j] = temporary chara[j] chara j temporary for (String charac : chara) {
			System.out.print(charac);
		} String charac chara {
			System.out.print(charac);
		} {
			System.out.print(charac);
		} System.out.print(charac) System.out.print System.out System System.out charac System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] chara = str.split("", 0);
		int length = chara.length;
		for (int i = 0; i <= length / 2; i++) {
			int j = length - i - 1;
			if (i >= j) {
				break;
			}
			String temporary = chara[i];
			chara[i] = chara[j];
			chara[j] = temporary;
		}
		for (String charac : chara) {
			System.out.print(charac);
		}
		System.out.println();
	}
}