import java.io.*;
public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	}
} import java.io.*; io.* java public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	} main {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) StringBuffer sb = new StringBuffer(r.readLine()); sb new StringBuffer(r.readLine()) 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[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	}
} public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	}
} Main
import java.io.*;
public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		StringBuffer sb = new StringBuffer(r.readLine());
		System.out.println(sb.reverse().toString());
	}
}