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

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){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			System.out.println();
		}
	}
} 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) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		while((line = br.readLine()) != null){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			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){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			System.out.println();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		while((line = br.readLine()) != null){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			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){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			System.out.println();
		} (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			System.out.println();
		} char[] charArray = line.toCharArray(); charArray line.toCharArray() line.toCharArray line for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			} int i = 0; int i = 0; i 0 i < charArray.length i charArray.length charArray charArray.length i++ i++ i {
				System.out.print(charArray[charArray.length - (i + 1)]);
			} {
				System.out.print(charArray[charArray.length - (i + 1)]);
			} System.out.print(charArray[charArray.length - (i + 1)]) System.out.print System.out System System.out charArray[charArray.length - (i + 1)] charArray charArray.length - (i + 1) charArray.length charArray charArray.length (i + 1) i 1 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){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			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){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			System.out.println();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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){
			char[] charArray = line.toCharArray();
			for(int i = 0;i < charArray.length;i++){
				System.out.print(charArray[charArray.length - (i + 1)]);
			}
			System.out.println();
		}
	}
}