import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	}

} Main public static void main(String[] args){
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	} main {
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	} ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc sc.close() sc.close sc String[] str = s.split(""); str s.split("") s.split s "" for(String a : str){
			list.add(a);
		} String a str {
			list.add(a);
		} {
			list.add(a);
		} list.add(a) list.add list a Collections.reverse(list) Collections.reverse Collections list for(String a : list){
			System.out.print(a);
		} String a list {
			System.out.print(a);
		} {
			System.out.print(a);
		} System.out.print(a) System.out.print System.out System System.out a System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
	public static void main(String[] args){
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	}

} public class Main {
	public static void main(String[] args){
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	}

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		ArrayList<String> list = new ArrayList<String>();
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		sc.close();
		
		String[] str = s.split("");
		for(String a : str){
			list.add(a);
		}
		Collections.reverse(list);
		
		for(String a : list){
			System.out.print(a);
		}
		System.out.println("");
	}

}