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

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	}

} Main public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String re =""; re "" for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		} int i = line.length() ; int i = line.length() ; i line.length() line.length line i > 0 i 0 i-- i-- i {
			re += line.charAt(i-1);
		} {
			re += line.charAt(i-1);
		} re += line.charAt(i-1) re line.charAt(i-1) line.charAt line i-1 i 1 System.out.println(re) System.out.println System.out System System.out re String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	}

} Main

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

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String re ="";
		for(int i = line.length() ; i > 0;i--){
			re += line.charAt(i-1);
		}
		System.out.println(re);

	}

}