

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

	}

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

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

	} main {
		Scanner sc = new Scanner(System.in);

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

	}

} public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

	}

} Main


import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.next();
		char[] n = str.toCharArray();

		for(int i=n.length-1; i>=0; i--){
			System.out.print(n[i]);
		}
		System.out.println();

	}

}