using System;using System.Text;using System.Linq;namespace N{class P{static void Main(){Console.Write(Console.ReadLine().Reverse().ToArray());}}}