import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException{
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	}

} import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws IOException{
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	}

} Main public static void main(String[] args) throws IOException{
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	} main {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) char[] str = br.readLine().toCharArray(); str br.readLine().toCharArray() br.readLine().toCharArray br.readLine() br.readLine br for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		} int i = str.length - 1; int i = str.length - 1; i str.length - 1 str.length str str.length 1 i >= 0 i 0 i-- i-- i {
			System.out.print(str[i]);
		} {
			System.out.print(str[i]);
		} System.out.print(str[i]) System.out.print System.out System System.out str[i] str i System.out.print('\n') System.out.print System.out System System.out '\n' String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	}

} public class Main {

	public static void main(String[] args) throws IOException{
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	}

} Main
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException{
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] str = br.readLine().toCharArray();
		
		for(int i = str.length - 1; i >= 0; i--){
			System.out.print(str[i]);
		}
		System.out.print('\n');
	}

}
