import java.io.*;
public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	}
} import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String data = br.readLine(); data br.readLine() br.readLine br System.out.println(new StringBuilder(data).reverse().toString()) System.out.println System.out System System.out new StringBuilder(data).reverse().toString() new StringBuilder(data).reverse().toString new StringBuilder(data).reverse() new StringBuilder(data).reverse new StringBuilder(data) String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	}
} public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	}
} Main
import java.io.*;
public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String data = br.readLine();
		
		System.out.println(new StringBuilder(data).reverse().toString()); 
	}
}