using System;
public class F_Reverse
{
public static string Reverse(string text)
{
if (text.Length <= 1)
return text;
char firstLetter = text[0];
string rest = text.Substring(1);
return Reverse(rest) + firstLetter;
}
public static void Main(string[] args)
{
Console.WriteLine(Reverse("Juan"));
}
}