import java.util.Scanner;

public class Main {

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

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String n = scanner.next();

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	} main {
		Scanner scanner = new Scanner(System.in);
		String n = scanner.next();

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String n = scanner.next(); n scanner.next() scanner.next scanner StringBuffer sb = new StringBuffer(n); sb new StringBuffer(n) String dst = sb.reverse().toString(); dst sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb System.out.println(dst) System.out.println System.out System System.out dst String[] args args public class Main {

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

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	}
} public class Main {

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

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	}
} Main
import java.util.Scanner;

public class Main {

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

		StringBuffer sb = new StringBuffer(n);
		String dst = sb.reverse().toString();
		System.out.println(dst);
	}
}