import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	}
} Main public static void main(String[] args) {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	} main {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	} String string; string Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) StringBuffer sBuffer = new StringBuffer(scanner.next()); sBuffer new StringBuffer(scanner.next()) System.out.println(sBuffer.reverse()) System.out.println System.out System System.out sBuffer.reverse() sBuffer.reverse sBuffer String[] args args public class Main {
	public static void main(String[] args) {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	}
} public class Main {
	public static void main(String[] args) {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String string;
		Scanner scanner = new Scanner(System.in);
		StringBuffer sBuffer = new StringBuffer(scanner.next());
		System.out.println(sBuffer.reverse());
	}
}