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

public class Main {

	public static void main(String[] a){

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	}

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

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	}

} Main public static void main(String[] a){

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	} main {

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	} String str; str BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); bf new BufferedReader(new InputStreamReader(System.in)) try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			try {
				bf.close();
			} catch (IOException e) {
			}
		} try {
				bf.close();
			} catch (IOException e) {
			} catch (IOException e) {
			} IOException e {
			} {
				bf.close();
			} bf.close() bf.close bf {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			} null != ( str = bf.readLine() ) null ( str = bf.readLine() ) str bf.readLine() bf.readLine bf {
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			} char[] cArr = str.toCharArray(); cArr str.toCharArray() str.toCharArray str int len = cArr.length; len cArr.length cArr cArr.length for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				} int i = 0; int i = 0; i 0 i < len / 2 i len / 2 len 2 i++ i++ i {
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				} {
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				} char tmp = cArr[i]; tmp cArr[i] cArr i cArr[i] = cArr[len - i - 1] cArr[i] cArr i cArr[len - i - 1] cArr len - i - 1 len - i - 1 len i 1 cArr[len - i - 1] = tmp cArr[len - i - 1] cArr len - i - 1 len - i - 1 len i 1 tmp for(char c : cArr){
					System.out.print(c);
				} char c cArr {
					System.out.print(c);
				} {
					System.out.print(c);
				} System.out.print(c) System.out.print System.out System System.out c System.out.println("") System.out.println System.out System System.out "" String[] a a public class Main {

	public static void main(String[] a){

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	}

} public class Main {

	public static void main(String[] a){

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	}

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

public class Main {

	public static void main(String[] a){

		String str;
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

		try {
			while(null != ( str = bf.readLine() )){
				char[] cArr = str.toCharArray();
				int len = cArr.length;
				for(int i = 0; i < len / 2; i++){
					char tmp = cArr[i];
					cArr[i] = cArr[len - i - 1];
					cArr[len - i - 1] = tmp;
				}
				for(char c : cArr){
					System.out.print(c);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				bf.close();
			} catch (IOException e) {
			}
		}
	}

}