import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	} main {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(new StringBuffer(sc.next()).reverse()) System.out.println System.out System System.out new StringBuffer(sc.next()).reverse() new StringBuffer(sc.next()).reverse new StringBuffer(sc.next()) String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(new StringBuffer(sc.next()).reverse());

	}

}