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

public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	}

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

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	}

} Main public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	} BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in)); reader new BufferedReader(new InputStreamReader(
				System.in)) StringBuilder builder = new StringBuilder(); builder new StringBuilder() StringTokenizer to; to char[] cs = reader.readLine().toCharArray(); cs reader.readLine().toCharArray() reader.readLine().toCharArray reader.readLine() reader.readLine reader for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		} int i=cs.length-1; int i=cs.length-1; i cs.length-1 cs.length cs cs.length 1 i>=0 i 0 i-- i-- i {
			builder.append(cs[i]);
		} {
			builder.append(cs[i]);
		} builder.append(cs[i]) builder.append builder cs[i] cs i System.out.println(builder) System.out.println System.out System System.out builder String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	}

} Main

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

public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		StringTokenizer to;
		char[] cs = reader.readLine().toCharArray();
		for(int i=cs.length-1;i>=0;i--){
			builder.append(cs[i]);
		}
		System.out.println(builder);

	}

}