import java.util.*;
import static java.lang.System.*;

public class Main {

	Scanner sc = new Scanner(in);
	
	String reverse(String s) {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	}
	
	void run() {
		String s = sc.nextLine();
		out.println(reverse(s));
	}
	
	public static void main(String[] args) {
		new Main().run();
	}

} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {

	Scanner sc = new Scanner(in);
	
	String reverse(String s) {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	}
	
	void run() {
		String s = sc.nextLine();
		out.println(reverse(s));
	}
	
	public static void main(String[] args) {
		new Main().run();
	}

} Main Scanner sc = new Scanner(in); sc new Scanner(in) String reverse(String s) {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	} reverse {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	} String ans = ""; ans "" int len = s.length(); len s.length() s.length s for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1); int i = 0; int i = 0; i 0 i < len i len i++ i++ i ans += s.charAt(len-i-1); ans += s.charAt(len-i-1) ans s.charAt(len-i-1) s.charAt s len-i-1 len-i-1 len i 1 return ans; ans String s s void run() {
		String s = sc.nextLine();
		out.println(reverse(s));
	} run {
		String s = sc.nextLine();
		out.println(reverse(s));
	} String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc out.println(reverse(s)) out.println out reverse(s) reverse s public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {

	Scanner sc = new Scanner(in);
	
	String reverse(String s) {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	}
	
	void run() {
		String s = sc.nextLine();
		out.println(reverse(s));
	}
	
	public static void main(String[] args) {
		new Main().run();
	}

} public class Main {

	Scanner sc = new Scanner(in);
	
	String reverse(String s) {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	}
	
	void run() {
		String s = sc.nextLine();
		out.println(reverse(s));
	}
	
	public static void main(String[] args) {
		new Main().run();
	}

} Main
import java.util.*;
import static java.lang.System.*;

public class Main {

	Scanner sc = new Scanner(in);
	
	String reverse(String s) {
		String ans = "";
		int len = s.length();
		for (int i = 0; i < len; i++)
			ans += s.charAt(len-i-1);
		return ans;
	}
	
	void run() {
		String s = sc.nextLine();
		out.println(reverse(s));
	}
	
	public static void main(String[] args) {
		new Main().run();
	}

}