

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

public class Main{

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	}

	public static String reverse(String source) {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	}
} 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 {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	}

	public static String reverse(String source) {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	}
} Main public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br System.out.println(reverse(str)) System.out.println System.out System System.out reverse(str) reverse str String[] args args public static String reverse(String source) {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	} reverse {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	} StringBuffer dest = new StringBuffer(); dest new StringBuffer() for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		} int i = source.length() - 1; int i = source.length() - 1; i source.length() - 1 source.length() source.length source 1 i >= 0 i 0 i-- i-- i {
			dest.append(source.charAt(i));
		} {
			dest.append(source.charAt(i));
		} dest.append(source.charAt(i)) dest.append dest source.charAt(i) source.charAt source i return dest.toString(); dest.toString() dest.toString dest String source source public class Main{

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	}

	public static String reverse(String source) {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	}
} public class Main{

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	}

	public static String reverse(String source) {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	}
} Main


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

public class Main{

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		
		System.out.println(reverse(str));
	}

	public static String reverse(String source) {
		StringBuffer dest = new StringBuffer();
		for (int i = source.length() - 1; i >= 0; i--) {
			dest.append(source.charAt(i));
		}
		return dest.toString();
	}
}