import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str = br.readLine();
		String[] strArray = str.split("", 0);

		for(int i = strArray.length - 1; i > -1; i--) {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		}

	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str = br.readLine();
		String[] strArray = str.split("", 0);

		for(int i = strArray.length - 1; i > -1; i--) {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		}

	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str = br.readLine();
		String[] strArray = str.split("", 0);

		for(int i = strArray.length - 1; i > -1; i--) {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str = br.readLine();
		String[] strArray = str.split("", 0);

		for(int i = strArray.length - 1; i > -1; i--) {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		}

	} 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[] strArray = str.split("", 0); strArray str.split("", 0) str.split str "" 0 for(int i = strArray.length - 1; i > -1; i--) {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		} int i = strArray.length - 1; int i = strArray.length - 1; i strArray.length - 1 strArray.length strArray strArray.length 1 i > -1 i -1 1 i-- i-- i {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		} {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		} if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			} i == 0 i 0 {
				System.out.println(strArray[0]);
			} System.out.println(strArray[0]) System.out.println System.out System System.out strArray[0] strArray 0 {
				System.out.print(strArray[i]);
			} System.out.print(strArray[i]) System.out.print System.out System System.out strArray[i] strArray i String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str = br.readLine();
		String[] strArray = str.split("", 0);

		for(int i = strArray.length - 1; i > -1; i--) {
			if(i == 0) {
				System.out.println(strArray[0]);
			} else {
				System.out.print(strArray[i]);
			}
		}

	}
}