
import java.util.Scanner;

class Main {
	Scanner sc = new Scanner(System.in);

	public void run() {
		String str=sc.next();
		StringBuilder s=new StringBuilder();
		for(int i=str.length()-1;i>=0;i--){
			s.append(str.charAt(i));
		}
		ln(s);
	}

	public static void main(String[] args) {
		new Main().run();
	}

	public static void pr(Object o) {
		System.out.print(o);
	}

	public static void ln(Object o) {
		System.out.println(o);
	}

	public static void ln() {
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util class Main {
	Scanner sc = new Scanner(System.in);

	public void run() {
		String str=sc.next();
		StringBuilder s=new StringBuilder();
		for(int i=str.length()-1;i>=0;i--){
			s.append(str.charAt(i));
		}
		ln(s);
	}

	public static void main(String[] args) {
		new Main().run();
	}

	public static void pr(Object o) {
		System.out.print(o);
	}

	public static void ln(Object o) {
		System.out.println(o);
	}

	public static void ln() {
		System.out.println();
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public void run() {
		String str=sc.next();
		StringBuilder s=new StringBuilder();
		for(int i=str.length()-1;i>=0;i--){
			s.append(str.charAt(i));
		}
		ln(s);
	} run {
		String str=sc.next();
		StringBuilder s=new StringBuilder();
		for(int i=str.length()-1;i>=0;i--){
			s.append(str.charAt(i));
		}
		ln(s);
	} String str=sc.next(); str sc.next() sc.next sc StringBuilder s=new StringBuilder(); s new StringBuilder() for(int i=str.length()-1;i>=0;i--){
			s.append(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 {
			s.append(str.charAt(i));
		} {
			s.append(str.charAt(i));
		} s.append(str.charAt(i)) s.append s str.charAt(i) str.charAt str i ln(s) ln s public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public static void pr(Object o) {
		System.out.print(o);
	} pr {
		System.out.print(o);
	} System.out.print(o) System.out.print System.out System System.out o Object o o public static void ln(Object o) {
		System.out.println(o);
	} ln {
		System.out.println(o);
	} System.out.println(o) System.out.println System.out System System.out o Object o o public static void ln() {
		System.out.println();
	} ln {
		System.out.println();
	} System.out.println() System.out.println System.out System System.out

import java.util.Scanner;

class Main {
	Scanner sc = new Scanner(System.in);

	public void run() {
		String str=sc.next();
		StringBuilder s=new StringBuilder();
		for(int i=str.length()-1;i>=0;i--){
			s.append(str.charAt(i));
		}
		ln(s);
	}

	public static void main(String[] args) {
		new Main().run();
	}

	public static void pr(Object o) {
		System.out.print(o);
	}

	public static void ln(Object o) {
		System.out.println(o);
	}

	public static void ln() {
		System.out.println();
	}
}