
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	}

} Main public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	} main {

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	} String strLine =""; strLine "" BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in)); stdReader new BufferedReader(new InputStreamReader(System.in)) String t = null; t null while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		} (strLine = stdReader.readLine()) != null (strLine = stdReader.readLine()) strLine stdReader.readLine() stdReader.readLine stdReader null {
			t = strLine;
		} t = strLine t strLine StringBuffer sb = new StringBuffer(t); sb new StringBuffer(t) strLine = sb.reverse().toString() strLine sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb System.out.println(strLine) System.out.println System.out System System.out strLine String[] a a public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	}

} public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	}

} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		String t = null;

		while  ((strLine = stdReader.readLine()) != null) {
			t = strLine;
		}
		;

		StringBuffer sb = new StringBuffer(t);
		strLine = sb.reverse().toString();

			System.out.println(strLine);


	}

}