import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		}
	}
} Main public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		}
	} main {
		try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		}
	} try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		} {
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc char[] s = str.toCharArray(); s str.toCharArray() str.toCharArray str StringBuilder sb = new StringBuilder(str.length()); sb new StringBuilder(str.length()) for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			} int i=str.length()-1; int i=str.length()-1; i str.length()-1 str.length() str.length str 1 i>=0 i 0 i-- i-- i {
				sb.append(s[i]);
			} {
				sb.append(s[i]);
			} sb.append(s[i]) sb.append sb s[i] s i System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		}
	}
} public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)){
			String str = sc.nextLine();
			char[] s = str.toCharArray();
			StringBuilder sb = new StringBuilder(str.length());
			
			for(int i=str.length()-1;i>=0;i--) {
				sb.append(s[i]);
			}
			System.out.println(sb.toString());
		}
	}
} Main
import java.util.Scanner;

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