import java.io.*;
public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	}
} import java.io.*; io.* java public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	}
} Main public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        } String[] numbers = line.split(""); numbers line.split("") line.split line "" for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			} int i = numbers.length - 1; int i = numbers.length - 1; i numbers.length - 1 numbers.length numbers numbers.length 1 i >= 0 i 0 i-- i-- i {
				System.out.print(numbers[i]);
			} {
				System.out.print(numbers[i]);
			} System.out.print(numbers[i]) System.out.print System.out System System.out numbers[i] numbers 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{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	}
} public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	}
} Main
import java.io.*;
public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split("");
			for (int i = numbers.length - 1; i >= 0; i--){
				System.out.print(numbers[i]);
			}
			System.out.println();
        }
	}
}