import java.io.PrintStream;
import java.util.*;
import java.util.Scanner ; 
import java.math.BigInteger;
import java.util.Arrays;
import java.text.DecimalFormat;


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

    }
} import java.io.PrintStream; PrintStream java.io import java.util.*; util.* java import java.util.Scanner ; Scanner java.util import java.math.BigInteger; BigInteger java.math import java.util.Arrays; Arrays java.util import java.text.DecimalFormat; DecimalFormat java.text public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);    
        String s;
        s = sc.nextLine();
        StringBuffer sb;
        sb = new StringBuffer(s);
        s = sb.reverse().toString();
        System.out.println(s);

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

    } main {
        Scanner sc = new Scanner(System.in);    
        String s;
        s = sc.nextLine();
        StringBuffer sb;
        sb = new StringBuffer(s);
        s = sb.reverse().toString();
        System.out.println(s);

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

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

    }
} Main
import java.io.PrintStream;
import java.util.*;
import java.util.Scanner ; 
import java.math.BigInteger;
import java.util.Arrays;
import java.text.DecimalFormat;


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

    }
}