import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		char[] s = scanner.next().toCharArray();
		char[] r = new char[s.length];
		for (int i = s.length - 1, j = 0; i >= 0; i--, j++) {
			r[j] = s[i];
		}
		System.out.println(r);
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		char[] s = scanner.next().toCharArray();
		char[] r = new char[s.length];
		for (int i = s.length - 1, j = 0; i >= 0; i--, j++) {
			r[j] = s[i];
		}
		System.out.println(r);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		char[] s = scanner.next().toCharArray();
		char[] r = new char[s.length];
		for (int i = s.length - 1, j = 0; i >= 0; i--, j++) {
			r[j] = s[i];
		}
		System.out.println(r);
	} main {
		Scanner scanner = new Scanner(System.in);
		char[] s = scanner.next().toCharArray();
		char[] r = new char[s.length];
		for (int i = s.length - 1, j = 0; i >= 0; i--, j++) {
			r[j] = s[i];
		}
		System.out.println(r);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char[] s = scanner.next().toCharArray(); s scanner.next().toCharArray() scanner.next().toCharArray scanner.next() scanner.next scanner char[] r = new char[s.length]; r new char[s.length] s.length s s.length for (int i = s.length - 1, j = 0; i >= 0; i--, j++) {
			r[j] = s[i];
		} int i = s.length - 1, j = 0; int i = s.length - 1 i s.length - 1 s.length s s.length 1 j = 0; j 0 i >= 0 i 0 i--, j++ i-- i j++ j {
			r[j] = s[i];
		} {
			r[j] = s[i];
		} r[j] = s[i] r[j] r j s[i] s i System.out.println(r) System.out.println System.out System System.out r String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		char[] s = scanner.next().toCharArray();
		char[] r = new char[s.length];
		for (int i = s.length - 1, j = 0; i >= 0; i--, j++) {
			r[j] = s[i];
		}
		System.out.println(r);
	}
}