import java.util.*;
import java.io.*;

class Main{
    public static void main (String args[]) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			
			if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			}
			System.out.println("");
			System.exit(0);
		}
		catch (IOException e) {
			e.printStackTrace();
		}	
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main (String args[]) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			
			if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			}
			System.out.println("");
			System.exit(0);
		}
		catch (IOException e) {
			e.printStackTrace();
		}	
    }
} Main public static void main (String args[]) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			
			if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			}
			System.out.println("");
			System.exit(0);
		}
		catch (IOException e) {
			e.printStackTrace();
		}	
    } main {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			
			if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			}
			System.out.println("");
			System.exit(0);
		}
		catch (IOException e) {
			e.printStackTrace();
		}	
    } try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			
			if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			}
			System.out.println("");
			System.exit(0);
		}
		catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			
			if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			}
			System.out.println("");
			System.exit(0);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br if (line.length() <= 20 && line.length() > 0) {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			}else{
				System.exit(0);
			} line.length() <= 20 && line.length() > 0 line.length() <= 20 line.length() line.length line 20 line.length() > 0 line.length() line.length line 0 {
				char[] str = line.toCharArray();
				for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				}
			} char[] str = line.toCharArray(); str line.toCharArray() line.toCharArray line for (int i = str.length-1; i >= 0; i--) {
					System.out.print(str[i]);
				} int i = str.length-1; int i = str.length-1; i str.length-1 str.length str str.length 1 i >= 0 i 0 i-- i-- i {
					System.out.print(str[i]);
				} {
					System.out.print(str[i]);
				} System.out.print(str[i]) System.out.print System.out System System.out str[i] str i {
				System.exit(0);
			} System.exit(0) System.exit System 0 System.out.println("") System.out.println System.out System System.out "" System.exit(0) System.exit System 0 String args[] args
import java.util.*;
import java.io.*;

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