using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace template { class Program { static void Main(string[] args) { string s = Console.ReadLine(); char[] a = s.ToCharArray(); Array.Reverse(a); Console.WriteLine(new string(a)); } } }