import java.util.*;

public class Main {

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

        doStuff();
    }

    public static void doStuff() 
	{
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    }

    public static void solve() 
	{
    
    }
} import java.util.*; util.* java public class Main {

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

        doStuff();
    }

    public static void doStuff() 
	{
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    }

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

        doStuff();
    } main {
        in = new Scanner(System.in);

        doStuff();
    } in = new Scanner(System.in) in new Scanner(System.in) doStuff() doStuff String[] args args public static void doStuff() 
	{
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    } doStuff {
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    } String s = in.nextLine(); s in.nextLine() in.nextLine in char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s char[] c2 = new char[c.length]; c2 new char[c.length] c.length c c.length for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		} int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i {
			c2[i] = c[c.length - i - 1];
		} {
			c2[i] = c[c.length - i - 1];
		} c2[i] = c[c.length - i - 1] c2[i] c2 i c[c.length - i - 1] c c.length - i - 1 c.length - i - 1 c.length c c.length i 1 String toRet = new String(c2); toRet new String(c2) System.out.println(toRet) System.out.println System.out System System.out toRet public static void solve() 
	{
    
    } solve {
    
    } public class Main {

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

        doStuff();
    }

    public static void doStuff() 
	{
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    }

    public static void solve() 
	{
    
    }
} public class Main {

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

        doStuff();
    }

    public static void doStuff() 
	{
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    }

    public static void solve() 
	{
    
    }
} Main
import java.util.*;

public class Main {

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

        doStuff();
    }

    public static void doStuff() 
	{
        String s = in.nextLine();
		char[] c = s.toCharArray();
		char[] c2 = new char[c.length];
		for(int i = 0; i < c.length; i++)
		{
			c2[i] = c[c.length - i - 1];
		}
		
		String toRet = new String(c2);
		
		System.out.println(toRet);
    }

    public static void solve() 
	{
    
    }
}