import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

	} main {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner s = new Scanner(System.in);
		
		StringBuffer sb = new StringBuffer(s.nextLine());
		System.out.println(sb.reverse().toString());

	}

}