import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    }
} Main public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    } main {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        } in.hasNext() in.hasNext in {
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        } String ans = new StringBuffer(in.next()).reverse().toString(); ans new StringBuffer(in.next()).reverse().toString() new StringBuffer(in.next()).reverse().toString new StringBuffer(in.next()).reverse() new StringBuffer(in.next()).reverse new StringBuffer(in.next()) System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    }
} public class Main {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String ans = new StringBuffer(in.next()).reverse().toString();
            System.out.println(ans);
        }
    }
}