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

class Main {
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} catch (Exception e) {
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} catch (Exception e) {
			e.printStackTrace();
		}
	} try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in)); br new BufferedReader(new InputStreamReader(
					System.in)) String line = br.readLine(); line br.readLine() br.readLine br int i = line.length(); i line.length() line.length line StringBuilder sb = new StringBuilder(); sb new StringBuilder() while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			} i > 0 i 0 {
				sb.append(line.substring(i - 1, i));
				i--;
			} sb.append(line.substring(i - 1, i)) sb.append sb line.substring(i - 1, i) line.substring line i - 1 i 1 i i-- i System.out.println(sb) System.out.println System.out System System.out sb String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			String line = br.readLine();
			int i = line.length();
			StringBuilder sb = new StringBuilder();
			while (i > 0) {
				sb.append(line.substring(i - 1, i));
				i--;
			}
			System.out.println(sb);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}