import java.util.*;

public class Main {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		}
	} import java.util.*; util.* java public class Main {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		}
	} Main private static Scanner sc; sc public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		} main {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		} sc = new Scanner(System.in) sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc StringBuffer sb = new StringBuffer(str); sb new StringBuffer(str) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String[] args args public class Main {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		}
	} public class Main {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		}
	} Main
import java.util.*;

public class Main {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.next();
		StringBuffer sb = new StringBuffer(str);
		System.out.println(sb.reverse());
		}
	}