import java.io.*;

class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
} import java.io.*; io.* java class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
} Main public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} catch (Exception e) {
			System.out.println("Exception!");
		} catch (Exception e) {
			System.out.println("Exception!");
		} Exception e {
			System.out.println("Exception!");
		} System.out.println("Exception!") System.out.println System.out System System.out "Exception!" {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} String buf = br.readLine(); buf br.readLine() br.readLine br StringBuffer sb = new StringBuffer(buf); sb new StringBuffer(buf) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String args[] args
import java.io.*;

class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			StringBuffer sb = new StringBuffer(buf);
			System.out.println(sb.reverse());
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
}