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

public class Main {

	public static void main(String argv[]) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		StringBuffer sb = new StringBuffer(br.readLine());
		System.out.println(sb.reverse().toString());
	}

} 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 argv[]) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		StringBuffer sb = new StringBuffer(br.readLine());
		System.out.println(sb.reverse().toString());
	}

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

	public static void main(String argv[]) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		StringBuffer sb = new StringBuffer(br.readLine());
		System.out.println(sb.reverse().toString());
	}

} public class Main {

	public static void main(String argv[]) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		StringBuffer sb = new StringBuffer(br.readLine());
		System.out.println(sb.reverse().toString());
	}

} Main

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

public class Main {

	public static void main(String argv[]) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		StringBuffer sb = new StringBuffer(br.readLine());
		System.out.println(sb.reverse().toString());
	}

}