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


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

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	}
} 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){
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	}
} Main public static void main(String[] args){
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) StringBuffer gyaku = null; gyaku null try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		} catch (IOException e) {
			System.out.println("error");
		} IOException e {
			System.out.println("error");
		} System.out.println("error") System.out.println System.out System System.out "error" {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} gyaku = new StringBuffer(br.readLine()) gyaku new StringBuffer(br.readLine()) gyaku = gyaku.reverse() gyaku gyaku.reverse() gyaku.reverse gyaku System.out.println(gyaku) System.out.println System.out System System.out gyaku String[] args args public class Main {
	public static void main(String[] args){
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	}
} public class Main {
	public static void main(String[] args){
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


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

		StringBuffer gyaku = null;

		try {
			gyaku = new StringBuffer(br.readLine());
			gyaku = gyaku.reverse();
			System.out.println(gyaku);
		} catch (IOException e) {
			System.out.println("error");
		}
	}
}