import java.io.*;

class Main{
	public static void main(String args[]) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str = in.readLine()) != null){
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		}
		
	}
} import java.io.*; io.* java class Main{
	public static void main(String args[]) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str = in.readLine()) != null){
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		}
		
	}
} Main public static void main(String args[]) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str = in.readLine()) != null){
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		}
		
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str = in.readLine()) != null){
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		}
		
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String str; str while((str = in.readLine()) != null){
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		} (str = in.readLine()) != null (str = in.readLine()) str in.readLine() in.readLine in null {
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		} StringBuffer reverse = new StringBuffer().append(str); reverse new StringBuffer().append(str) new StringBuffer().append new StringBuffer() str System.out.print(reverse.reverse() + "\n") System.out.print System.out System System.out reverse.reverse() + "\n" reverse.reverse() reverse.reverse reverse "\n" String args[] args
import java.io.*;

class Main{
	public static void main(String args[]) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str = in.readLine()) != null){
			StringBuffer reverse = new StringBuffer().append(str);
			System.out.print(reverse.reverse() + "\n");
		}
		
	}
}