import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) throws Exception {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		}
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) throws Exception {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		}
} Main public static void main(String args[]) throws Exception {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		} main {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str; str str = sc.next() str sc.next() sc.next sc StringBuilder strBul = new StringBuilder(str).reverse(); strBul new StringBuilder(str).reverse() new StringBuilder(str).reverse new StringBuilder(str) System.out.println(strBul) System.out.println System.out System System.out strBul String args[] args public class Main {
	public static void main(String args[]) throws Exception {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		}
} public class Main {
	public static void main(String args[]) throws Exception {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		}
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) throws Exception {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
			StringBuilder strBul = new StringBuilder(str).reverse();
			System.out.println(strBul);
		}
}