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

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

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	}
} Main public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) char[] s = br.readLine().toCharArray(); s br.readLine().toCharArray() br.readLine().toCharArray br.readLine() br.readLine br int N = s.length; N s.length s s.length for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		} int i=0; int i=0; i 0 i<N/2 i N/2 N 2 i++ i++ i {
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		} {
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		} char temp = s[i]; temp s[i] s i s[i] = s[N-i-1] s[i] s i s[N-i-1] s N-i-1 N-i-1 N i 1 s[N-i-1] = temp s[N-i-1] s N-i-1 N-i-1 N i 1 temp System.out.println(s) System.out.println System.out System System.out s String[] arg arg public class Main
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	}
} public class Main
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

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

		char[] s = br.readLine().toCharArray();
		
		int N = s.length;
		for(int i=0; i<N/2; i++){
			char temp = s[i];
			s[i] = s[N-i-1];
			s[N-i-1] = temp;
		}

		System.out.println(s);
	}
}