using System;
public class Program
{
public static void Main()
string str = Console.ReadLine();
Console.WriteLine(ReverseString(str));
}
public static string ReverseString(string str){
if(str.Length<=1){
return str;
return ReverseString(str.Substring(1, str.Length-1)) + str[0];