import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String nyumoji = scan.next(); nyumoji scan.next() scan.next scan String outpt = ""; outpt "" for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			} int i = 0; int i = 0; i 0 i < nyumoji.length() i nyumoji.length() nyumoji.length nyumoji i++ i++ i {
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			} {
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			} outpt +=nyumoji.charAt((nyumoji.length()-1) - i) outpt nyumoji.charAt((nyumoji.length()-1) - i) nyumoji.charAt nyumoji (nyumoji.length()-1) - i (nyumoji.length()-1) nyumoji.length() nyumoji.length nyumoji 1 i System.out.println(outpt) System.out.println System.out System System.out outpt scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
			String nyumoji = scan.next();

			String outpt = "";
			for(int i = 0; i < nyumoji.length(); i++){
				outpt +=nyumoji.charAt((nyumoji.length()-1) - i);
			}
			System.out.println(outpt);
			scan.close();
	}
}