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

public class Main {

	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	}
} Main public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) char[] c = br.readLine().toCharArray(); c br.readLine().toCharArray() br.readLine().toCharArray br.readLine() br.readLine br char[] rev = new char[c.length]; rev new char[c.length] c.length c c.length for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		} int i=c.length-1, j=0; int i=c.length-1 i c.length-1 c.length c c.length 1 j=0; j 0 i>=0 i 0 i--,j++ i-- i j++ j {
			rev[j]=c[i];
		} {
			rev[j]=c[i];
		} rev[j]=c[i] rev[j] rev j c[i] c i System.out.println(String.valueOf(rev)) System.out.println System.out System System.out String.valueOf(rev) String.valueOf String rev String args[] args public class Main {

	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	}
} public class Main {

	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().toCharArray();
		char[] rev = new char[c.length];
		
		for(int i=c.length-1, j=0;i>=0;i--,j++){
			rev[j]=c[i];
		}
		
		System.out.println(String.valueOf(rev));
	}
}