import java.util.Scanner;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((new StringBuilder(s)).reverse().toString());
    }
}