import java.util.*;

public class Main {
public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
}
} import java.util.*; util.* java public class Main {
public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
}
} Main public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
} main {
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc char[] a=s.toCharArray(); a s.toCharArray() s.toCharArray s for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]); int i=a.length-1; int i=a.length-1; i a.length-1 a.length a a.length 1 i>=0 i 0 i-- i-- i System.out.print(a[i]); System.out.print(a[i]) System.out.print System.out System System.out a[i] a i System.out.println() System.out.println System.out System System.out String[]args args public class Main {
public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
}
} public class Main {
public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
}
} Main
import java.util.*;

public class Main {
public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
	String s=sc.next(); 
	char[] a=s.toCharArray();
	for(int i=a.length-1; i>=0; i-- )
	System.out.print(a[i]);
	System.out.println();
}
}