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

public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	}

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

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	}

} Main public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		} {
			br.close();
		} br.close() br.close br {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} StringBuffer sb = new StringBuffer(br.readLine()); sb new StringBuffer(br.readLine()) System.out.println(sb.reverse().toString()) System.out.println System.out System System.out sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb String[] args args public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	}

} public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	}

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

public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			StringBuffer sb = new StringBuffer(br.readLine());
			System.out.println(sb.reverse().toString());

		} finally {
			br.close();
		}

	}

}