import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	}

} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		} int i=str.length()-1; int i=str.length()-1; i str.length()-1 str.length() str.length str 1 i>=0 i 0 i-- i-- i {
			System.out.print(str.charAt(i));
		} {
			System.out.print(str.charAt(i));
		} System.out.print(str.charAt(i)) System.out.print System.out System System.out str.charAt(i) str.charAt str i scan.close() scan.close scan System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	}

} public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	}

} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		for(int i=str.length()-1;i>=0;i--){
			System.out.print(str.charAt(i));
		}
		scan.close();
		System.out.println("");
	}

}