import java.io.*;

public class Main{
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	}
} import java.io.*; io.* java public class Main{
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String str = ""; str "" try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		} catch(Exception e) {
			e.getMessage();
		} Exception e {
			e.getMessage();
		} e.getMessage() e.getMessage e {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			} (str = br.readLine()) != "" (str = br.readLine()) str br.readLine() br.readLine br "" {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			} for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				} int i=str.length(); int i=str.length(); i str.length() str.length str i>0 i 0 i-- i-- i {
					sb.append(str.substring(i-1, i));
				} {
					sb.append(str.substring(i-1, i));
				} sb.append(str.substring(i-1, i)) sb.append sb str.substring(i-1, i) str.substring str i-1 i 1 i System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main{
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	}
} public class Main{
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	}
} Main
import java.io.*;

public class Main{
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String str = "";
		try {
			while((str = br.readLine()) != "") {
				for(int i=str.length(); i>0; i--) {
					sb.append(str.substring(i-1, i));
				}
				System.out.println(sb.toString());
			}
		} catch(Exception e) {
			e.getMessage();
		}
	}
}