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

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

            for (int i = input.Length-1; i >= 0; i--)
            {
                Console.Write($"{input[i]}");

            }
            Console.WriteLine();
        }
    }
}
