import java.util.*;

public class Main {

	public static void main(String[] args) {
		new Main().run();
	}
	
	private void run() {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		new Main().run();
	}
	
	private void run() {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	}

} Main public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args private void run() {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	} run {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan StringBuffer strr = new StringBuffer(str.length()); strr new StringBuffer(str.length()) for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		} int i = str.length() - 1; int i = str.length() - 1; i str.length() - 1 str.length() str.length str 1 i >= 0 i 0 i-- i-- i {
			strr.append(str.substring(i, i+1));
		} {
			strr.append(str.substring(i, i+1));
		} strr.append(str.substring(i, i+1)) strr.append strr str.substring(i, i+1) str.substring str i i+1 i 1 System.out.println(strr) System.out.println System.out System System.out strr public class Main {

	public static void main(String[] args) {
		new Main().run();
	}
	
	private void run() {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	}

} public class Main {

	public static void main(String[] args) {
		new Main().run();
	}
	
	private void run() {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		new Main().run();
	}
	
	private void run() {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		StringBuffer strr = new StringBuffer(str.length());
		for (int i = str.length() - 1; i >= 0; i--) {
			strr.append(str.substring(i, i+1));
		}
		System.out.println(strr);
	}

}