import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        StringBuilder sb = new StringBuilder();
        sb.append(sc.nextLine());

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

        StringBuilder sb = new StringBuilder();
        sb.append(sc.nextLine());

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

        StringBuilder sb = new StringBuilder();
        sb.append(sc.nextLine());

        System.out.println(sb.reverse());
    } main {
        Scanner sc = new Scanner(System.in);

        StringBuilder sb = new StringBuilder();
        sb.append(sc.nextLine());

        System.out.println(sb.reverse());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(sc.nextLine()) sb.append sb sc.nextLine() sc.nextLine sc System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String args[] args
import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        StringBuilder sb = new StringBuilder();
        sb.append(sc.nextLine());

        System.out.println(sb.reverse());
    }
}