import java.io.*;

public class Main {

	public static void main(String[] args)throws IOException{
		
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		
		String str = br.readLine();
		
		char[] strc = str.toCharArray();
		for(int i = 0; i < str.length()/2; i++){
			char m = strc[i];
			strc[i] = strc[str.length()-i-1];
			strc[str.length()-i-1] = m;
		}
		for(int i = 0; i < str.length(); i++){
			System.out.print(strc[i]);
		}
		System.out.println();
	}

} import java.io.*; io.* java public class Main {

	public static void main(String[] args)throws IOException{
		
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		
		String str = br.readLine();
		
		char[] strc = str.toCharArray();
		for(int i = 0; i < str.length()/2; i++){
			char m = strc[i];
			strc[i] = strc[str.length()-i-1];
			strc[str.length()-i-1] = m;
		}
		for(int i = 0; i < str.length(); i++){
			System.out.print(strc[i]);
		}
		System.out.println();
	}

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

	public static void main(String[] args)throws IOException{
		
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		
		String str = br.readLine();
		
		char[] strc = str.toCharArray();
		for(int i = 0; i < str.length()/2; i++){
			char m = strc[i];
			strc[i] = strc[str.length()-i-1];
			strc[str.length()-i-1] = m;
		}
		for(int i = 0; i < str.length(); i++){
			System.out.print(strc[i]);
		}
		System.out.println();
	}

} public class Main {

	public static void main(String[] args)throws IOException{
		
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		
		String str = br.readLine();
		
		char[] strc = str.toCharArray();
		for(int i = 0; i < str.length()/2; i++){
			char m = strc[i];
			strc[i] = strc[str.length()-i-1];
			strc[str.length()-i-1] = m;
		}
		for(int i = 0; i < str.length(); i++){
			System.out.print(strc[i]);
		}
		System.out.println();
	}

} Main
import java.io.*;

public class Main {

	public static void main(String[] args)throws IOException{
		
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		
		String str = br.readLine();
		
		char[] strc = str.toCharArray();
		for(int i = 0; i < str.length()/2; i++){
			char m = strc[i];
			strc[i] = strc[str.length()-i-1];
			strc[str.length()-i-1] = m;
		}
		for(int i = 0; i < str.length(); i++){
			System.out.print(strc[i]);
		}
		System.out.println();
	}

}