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

class Main{


	public static void main(String[] a){

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);


        String str = "";
        char[] chr;

		try {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		}

	}


} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{


	public static void main(String[] a){

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);


        String str = "";
        char[] chr;

		try {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		}

	}


} Main public static void main(String[] a){

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);


        String str = "";
        char[] chr;

		try {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		}

	} main {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);


        String str = "";
        char[] chr;

		try {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		}

	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = ""; str "" char[] chr; chr try {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} str = br.readLine() str br.readLine() br.readLine br chr = new char[str.length()] chr new char[str.length()] str.length() str.length str for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
				 chr[i] = str.charAt(i);
			} {
				 chr[i] = str.charAt(i);
			} chr[i] = str.charAt(i) chr[i] chr i str.charAt(i) str.charAt str i String ans = ""; ans "" for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			} int i = (chr.length - 1); int i = (chr.length - 1); i (chr.length - 1) chr.length chr chr.length 1 i >= 0 i 0 i-- i-- i {
				ans += chr[i];
			} {
				ans += chr[i];
			} ans += chr[i] ans chr[i] chr i System.out.println(ans) System.out.println System.out System System.out ans String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{


	public static void main(String[] a){

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);


        String str = "";
        char[] chr;

		try {
			str = br.readLine();
			chr = new char[str.length()];

			for(int i = 0; i < str.length(); i++) {
				 chr[i] = str.charAt(i);
			}

			String ans = "";

			for(int i = (chr.length - 1); i >= 0; i--) {
				ans += chr[i];
			}
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		}

	}


}