import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc char[] ca = str.toCharArray(); ca str.toCharArray() str.toCharArray str for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		} int i = 0; int i = 0; i 0 i < ca.length i ca.length ca ca.length i++ i++ i {
			System.out.print( ca[ca.length-1 - i] );
		} {
			System.out.print( ca[ca.length-1 - i] );
		} System.out.print( ca[ca.length-1 - i] ) System.out.print System.out System System.out ca[ca.length-1 - i] ca ca.length-1 - i ca.length-1 - i ca.length ca ca.length 1 i System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();

		char[] ca = str.toCharArray();
		for (int i = 0; i < ca.length; i++) {
			System.out.print( ca[ca.length-1 - i] );
		}
		System.out.println();
	}

}