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