﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Reverse_String
{
    class ReverseString
    {
        static void Main(string[] args)
        {
            var input = Console.ReadLine();

            var output =new StringBuilder();

            for (int i = input.Length-1; i >= 0; i--)
            {
                output.Append(input[i]);
            }

            Console.WriteLine(output.ToString());
        }
    }
}
