import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

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

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	} main {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	} Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		} catch (Exception e) {
			// TODO: handle exception
		} Exception e {
			// TODO: handle exception
		} {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			} scan.hasNext() scan.hasNext scan {
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			} StringBuffer sb=new StringBuffer(scan.nextLine()); sb new StringBuffer(scan.nextLine()) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			while(scan.hasNext()){
				StringBuffer sb=new StringBuffer(scan.nextLine());
				System.out.println(sb.reverse());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}