import java.util.Scanner;

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

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