import java.util.Scanner;

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

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