import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
	public static void main(String[] args) {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	}
} import java.util.Scanner; Scanner java.util import java.util.regex.Matcher; Matcher java.util.regex import java.util.regex.Pattern; Pattern java.util.regex public class Main {
	public static void main(String[] args) {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	}
} Main public static void main(String[] args) {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	} main {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	} String[] strArry = null; strArry null String a; a String sin = ""; sin "" Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		} sc.hasNext() sc.hasNext sc {
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		} a = sc.next() a sc.next() sc.next sc int nagasa = a.length(); nagasa a.length() a.length a if(nagasa > 20){
				break;
			} nagasa > 20 nagasa 20 {
				break;
			} break; Pattern p = Pattern.compile("[0-9a-zA-Z]+"); p Pattern.compile("[0-9a-zA-Z]+") Pattern.compile Pattern "[0-9a-zA-Z]+" Matcher m = p.matcher(a); m p.matcher(a) p.matcher p a boolean matchResult = m.matches(); matchResult m.matches() m.matches m if(matchResult == false){
				break;
			} matchResult == false matchResult false {
				break;
			} break; strArry = a.split("") strArry a.split("") a.split a "" for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			} int b = strArry.length-1; int b = strArry.length-1; b strArry.length-1 strArry.length strArry strArry.length 1 0 <= b 0 b b-- b-- b {
				String c =strArry[b];
				sin = sin + c ;
			} {
				String c =strArry[b];
				sin = sin + c ;
			} String c =strArry[b]; c strArry[b] strArry b sin = sin + c sin sin + c sin c break; System.out.println(sin) System.out.println System.out System System.out sin String[] args args public class Main {
	public static void main(String[] args) {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	}
} public class Main {
	public static void main(String[] args) {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	}
} Main
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
	public static void main(String[] args) {
		// ??????????????°
		String[] strArry = null;
		String a;
		String sin = "";

		Scanner sc = new Scanner(System.in);		//?????????????????§??\???


		while(sc.hasNext()){
			a = sc.next();		//??\?????????????????????a?????\??????
			int nagasa = a.length();
			if(nagasa > 20){
				break;
			}

			Pattern p = Pattern.compile("[0-9a-zA-Z]+");		//????§???±??°????????£?¨?
			Matcher m = p.matcher(a);

			boolean matchResult = m.matches();
			if(matchResult == false){
				break;
			}

			strArry = a.split("");		//a?????\??£?????????????????????strArray?????\??????

			for(int b = strArry.length-1; 0 <= b ; b--){
				String c =strArry[b];
				sin = sin + c ;
			}
		break;
		}
		System.out.println(sin);
	}
}