import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String name;
		while(true){

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String name;
		while(true){

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String name;
		while(true){

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		}
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String name;
		while(true){

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		}
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String name; name while(true){

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		} true {

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		} try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			} catch(Exception e){
				System.exit(0);
			} Exception e {
				System.exit(0);
			} System.exit(0) System.exit System 0 {
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			} name=br.readLine() name br.readLine() br.readLine br StringBuffer sb=new StringBuffer(name); sb new StringBuffer(name) name=sb.reverse().toString() name sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb System.out.println(name) System.out.println System.out System System.out name name="" name "" sb=null sb null String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String name;
		while(true){

			try{
				name=br.readLine();
				StringBuffer sb=new StringBuffer(name);
				name=sb.reverse().toString();
				System.out.println(name);
				name="";
				sb=null;

			}

			catch(Exception e){
				System.exit(0);
			}
		}
	}
}