import java.io.*;

class Main {
	public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		}
		catch(IOException e) {
			System.out.println(e);
		}
	}
} import java.io.*; io.* java class Main {
	public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		}
		catch(IOException e) {
			System.out.println(e);
		}
	}
} Main public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		}
		catch(IOException e) {
			System.out.println(e);
		}
	} main {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		}
		catch(IOException e) {
			System.out.println(e);
		}
	} try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		}
		catch(IOException e) {
			System.out.println(e);
		} catch(IOException e) {
			System.out.println(e);
		} IOException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String s; s s = reader.readLine() s reader.readLine() reader.readLine reader for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			} int i = s.length()-1; int i = s.length()-1; i s.length()-1 s.length() s.length s 1 i >=0 i 0 i-- i-- i {
				System.out.print(s.charAt(i));
			} {
				System.out.print(s.charAt(i));
			} System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i System.out.println("") System.out.println System.out System System.out "" String args[] args
import java.io.*;

class Main {
	public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String s;
			s = reader.readLine();
			for(int i = s.length()-1;i >=0;i--) {
				System.out.print(s.charAt(i));
			}
			System.out.println("");
		}
		catch(IOException e) {
			System.out.println(e);
		}
	}
}