import java.util.Scanner;


public class Main{
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	}

} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	}

} Main public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	} main {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	} Scanner scan =new Scanner(System.in); scan new Scanner(System.in) String str =scan.nextLine(); str scan.nextLine() scan.nextLine scan char[] s = new char[20]; s new char[20] 20 char[] t = new char[20]; t new char[20] 20 s=str.toCharArray() s str.toCharArray() str.toCharArray str for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		} int i=0; int i=0; i 0 i<s.length i s.length s s.length i++ i++ i {
			t[t.length-1-i]=s[i];
		} {
			t[t.length-1-i]=s[i];
		} t[t.length-1-i]=s[i] t[t.length-1-i] t t.length-1-i t.length-1-i t.length t t.length 1 i s[i] s i str=String.valueOf(t) str String.valueOf(t) String.valueOf String t System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	}

} public class Main{
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	}

} Main
import java.util.Scanner;


public class Main{
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		String str =scan.nextLine();
		char[] s = new char[20];
		char[] t = new char[20];
		s=str.toCharArray();
		for(int i=0;i<s.length;i++){
			t[t.length-1-i]=s[i];
		}
		str=String.valueOf(t);
		System.out.println(str);
	}

}