import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuffer sb = new StringBuffer();
		sb.append(scan.nextLine());
		sb.reverse();
		System.out.println(sb);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuffer sb = new StringBuffer();
		sb.append(scan.nextLine());
		sb.reverse();
		System.out.println(sb);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuffer sb = new StringBuffer();
		sb.append(scan.nextLine());
		sb.reverse();
		System.out.println(sb);
	} main {
		Scanner scan = new Scanner(System.in);
		StringBuffer sb = new StringBuffer();
		sb.append(scan.nextLine());
		sb.reverse();
		System.out.println(sb);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) StringBuffer sb = new StringBuffer(); sb new StringBuffer() sb.append(scan.nextLine()) sb.append sb scan.nextLine() scan.nextLine scan sb.reverse() sb.reverse sb System.out.println(sb) System.out.println System.out System System.out sb String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuffer sb = new StringBuffer();
		sb.append(scan.nextLine());
		sb.reverse();
		System.out.println(sb);
	}
}