import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	}
} Main public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	} main {
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String str=sc.next(); str sc.next() sc.next sc String str2=""; str2 "" char[] chr=str.toCharArray(); chr str.toCharArray() str.toCharArray str for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		} int j=0; int j=0; j 0 j<str.length() j str.length() str.length str j++ j++ j {
			str2+=chr[str.length()-j-1];
		} {
			str2+=chr[str.length()-j-1];
		} str2+=chr[str.length()-j-1] str2 chr[str.length()-j-1] chr str.length()-j-1 str.length()-j-1 str.length() str.length str j 1 System.out.println(str2) System.out.println System.out System System.out str2 sc.close() sc.close sc String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String str2="";
		char[] chr=str.toCharArray();
		for(int j=0;j<str.length();j++){
			str2+=chr[str.length()-j-1];
		}
		System.out.println(str2);
		sc.close();
	}
}