using System;
public class Program
{
public static void Main()
string s=Console.ReadLine();
for(int i=s.Length-1;i>=0;i--)
Console.Write(s[i]);
}