using System; using System.Linq; class Program { static void Main() { Console.WriteLine(new string(Console.ReadLine().Reverse().ToArray())); } }