import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	} main {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String d = sc.nextLine(); d sc.nextLine() sc.nextLine sc char[] ds = d.toCharArray(); ds d.toCharArray() d.toCharArray d StringBuffer res = new StringBuffer(); res new StringBuffer() for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		} int i = ds.length -1 ; int i = ds.length -1 ; i ds.length -1 ds.length ds ds.length 1 i >=0 i 0 i-- i-- i {
			res.append(ds[i]);
		} {
			res.append(ds[i]);
		} res.append(ds[i]) res.append res ds[i] ds i System.out.println(res.toString()) System.out.println System.out System System.out res.toString() res.toString res String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String d = sc.nextLine();
		char[] ds = d.toCharArray();
		StringBuffer res = new StringBuffer();
		
		for(int i = ds.length -1 ; i >=0; i--){
			res.append(ds[i]);
		}
		
		System.out.println(res.toString());
	}

}