string myString = Console.ReadLine();
char[] ch= myString.ToCharArray();
string str = "";
for(int i = ch.Length-1;i>=0;i--)
{
str+=ch[i];
}
Console.WriteLine (str) ;