using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void ConversString(string str) { if (str.Length == 1) { Console.Write(str); } else { Console.Write(str.Substring(str.Length - 1, 1)); str = str.Substring(0,str.Length - 1); ConversString(str); } } static void Main(string[] args) { string s = Console.ReadLine(); ConversString(s); for (int i = s.Length - 1;i>=0 ;i--) { Console.Write(s[i]); } Console.ReadLine(); } } }