import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String moji; moji char[] charmoji; charmoji while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		} scan.hasNext() == true scan.hasNext() scan.hasNext scan true {
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		} moji = scan.next() moji scan.next() scan.next scan charmoji = moji.toCharArray() charmoji moji.toCharArray() moji.toCharArray moji for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			} int i = 0; int i = 0; i 0 i < charmoji.length/2 i charmoji.length/2 charmoji.length charmoji charmoji.length 2 i++ i++ i {
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			} {
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			} char tmp = charmoji[i]; tmp charmoji[i] charmoji i charmoji[i] = charmoji[charmoji.length-1-i] charmoji[i] charmoji i charmoji[charmoji.length-1-i] charmoji charmoji.length-1-i charmoji.length-1-i charmoji.length charmoji charmoji.length 1 i charmoji[charmoji.length-1-i] = tmp charmoji[charmoji.length-1-i] charmoji charmoji.length-1-i charmoji.length-1-i charmoji.length charmoji charmoji.length 1 i tmp moji = String.valueOf(charmoji) moji String.valueOf(charmoji) String.valueOf String charmoji System.out.println(moji) System.out.println System.out System System.out moji scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String moji;
		char[] charmoji;
		while(scan.hasNext() == true){
			moji = scan.next();
			charmoji = moji.toCharArray();
			for(int i = 0; i < charmoji.length/2; i++){
				char tmp = charmoji[i];
				charmoji[i] = charmoji[charmoji.length-1-i];
				charmoji[charmoji.length-1-i] = tmp;
			}
			moji = String.valueOf(charmoji);
			System.out.println(moji);
		}
		scan.close();
	}
}