import java.util.Scanner;

public class Main {

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

	}

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

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

	}

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

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

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

	}

} public class Main {

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

	}

} Main
import java.util.Scanner;

public class Main {

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


		String str = sc.nextLine();
		StringBuffer sb = new StringBuffer(str);
		String rv =sb.reverse().toString();

		System.out.println(rv);

	}

}