import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	static String line;
	public static void main(String[] args) {
		read();
		slove();
	}
	static  boolean read(){
		line = sc.nextLine();
		return true;
	}
	static void slove(){
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	}
} import java.util.*; util.* java public class Main {
	static Scanner sc = new Scanner(System.in);
	static String line;
	public static void main(String[] args) {
		read();
		slove();
	}
	static  boolean read(){
		line = sc.nextLine();
		return true;
	}
	static void slove(){
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static String line; line public static void main(String[] args) {
		read();
		slove();
	} main {
		read();
		slove();
	} read() read slove() slove String[] args args static  boolean read(){
		line = sc.nextLine();
		return true;
	} read {
		line = sc.nextLine();
		return true;
	} line = sc.nextLine() line sc.nextLine() sc.nextLine sc return true; true static void slove(){
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	} slove {
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	} String line_ = new StringBuffer(line).reverse().toString(); line_ new StringBuffer(line).reverse().toString() new StringBuffer(line).reverse().toString new StringBuffer(line).reverse() new StringBuffer(line).reverse new StringBuffer(line) System.out.println(line_) System.out.println System.out System System.out line_ public class Main {
	static Scanner sc = new Scanner(System.in);
	static String line;
	public static void main(String[] args) {
		read();
		slove();
	}
	static  boolean read(){
		line = sc.nextLine();
		return true;
	}
	static void slove(){
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	}
} public class Main {
	static Scanner sc = new Scanner(System.in);
	static String line;
	public static void main(String[] args) {
		read();
		slove();
	}
	static  boolean read(){
		line = sc.nextLine();
		return true;
	}
	static void slove(){
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	}
} Main
import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	static String line;
	public static void main(String[] args) {
		read();
		slove();
	}
	static  boolean read(){
		line = sc.nextLine();
		return true;
	}
	static void slove(){
		String line_ = new StringBuffer(line).reverse().toString();
		System.out.println(line_);
	}
}