import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	}

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

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	}

} Main public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	} main {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) String x; x x=cin.next() x cin.next() cin.next cin for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		} int i=x.length(); int i=x.length(); i x.length() x.length x i>0 i 0 i-- i-- i {
			char s=x.charAt(i-1);
			System.out.print(s);
		} {
			char s=x.charAt(i-1);
			System.out.print(s);
		} char s=x.charAt(i-1); s x.charAt(i-1) x.charAt x i-1 i 1 System.out.print(s) System.out.print System.out System System.out s System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	}

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

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		String x;
		x=cin.next();
		for(int i=x.length();i>0;i--){
			char s=x.charAt(i-1);
			System.out.print(s);
		}
		System.out.println("");
	}

}