using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace contest6
{
    class Program
    {
        static void Main(string[] args)
        {
            //空白で分割する
            var line_origin = Console.ReadLine();
            line_origin.Reverse();
            Console.WriteLine(line_origin);
        }
    }
}