import java.util.Scanner;


public class Main {


	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
}
} import java.util.Scanner; Scanner java.util public class Main {


	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
} main {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String moji = stdIn.next(); moji stdIn.next() stdIn.next stdIn stdIn.close() stdIn.close stdIn for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		} int i = (moji.length() - 1); int i = (moji.length() - 1); i (moji.length() - 1) moji.length() moji.length moji 1 i >= 0 i 0 i-- i-- i {
			System.out.print(moji.charAt(i));
		} {
			System.out.print(moji.charAt(i));
		} System.out.print(moji.charAt(i)) System.out.print System.out System System.out moji.charAt(i) moji.charAt moji i System.out.println() System.out.println System.out System System.out String[] args args public class Main {


	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
}
} public class Main {


	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
}
} Main
import java.util.Scanner;


public class Main {


	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String moji = stdIn.next();
		stdIn.close();
		
		for (int i = (moji.length() - 1); i >= 0; i--) {
			System.out.print(moji.charAt(i));
		}
		System.out.println();
}
}