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

public class Main {
	public static void main(String[] args) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} 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) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = null; line null try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			} (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			} char[] charArray = line.trim().toCharArray(); charArray line.trim().toCharArray() line.trim().toCharArray line.trim() line.trim line if(charArray.length > 20) System.exit(-1); charArray.length > 20 charArray.length charArray charArray.length 20 System.exit(-1) System.exit System -1 1 for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				} int i = charArray.length - 1; int i = charArray.length - 1; i charArray.length - 1 charArray.length charArray charArray.length 1 i >= 0 i 0 i-- i-- i {
					System.out.print(charArray[i]);
				} {
					System.out.print(charArray[i]);
				} System.out.print(charArray[i]) System.out.print System.out System System.out charArray[i] charArray i System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
	public static void main(String[] args) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null;

		try {
			while ((line = br.readLine()) != null) {
				char[] charArray = line.trim().toCharArray();
				if(charArray.length > 20) System.exit(-1);
				
				for(int i = charArray.length - 1; i >= 0; i--){
					System.out.print(charArray[i]);
				}
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}