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

	//??????????????????????????°
	public static void main(String[] args) {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	}

} 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[] args) {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	}

} Main //??????????????????????????°
	public static void main(String[] args) {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	} main {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	} BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		} IOException e {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} String s = input.readLine(); s input.readLine() input.readLine input StringBuffer str = new StringBuffer(s); str new StringBuffer(s) s = str.reverse().toString() s str.reverse().toString() str.reverse().toString str.reverse() str.reverse str System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

	//??????????????????????????°
	public static void main(String[] args) {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	}

} public class Main {

	//??????????????????????????°
	public static void main(String[] args) {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	}

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

	//??????????????????????????°
	public static void main(String[] args) {

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		try {
			String s = input.readLine();
			StringBuffer str = new StringBuffer(s);
			s = str.reverse().toString();
			System.out.println(s);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
		
		
		
	}

}