import java.util.Scanner;

public class Main {

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

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

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

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

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

	}
} public class Main {

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

	}
} Main
import java.util.Scanner;

public class Main {

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

		String str = scanner.nextLine();

		StringBuffer sb = new StringBuffer(str);
		String result = sb.reverse().toString();

		System.out.println(result);

	}
}