using System;
public class Program
{
public static void Main()
string s,revs="",x="";
Console.WriteLine("Въведи дума");
s = Console.ReadLine();
for (int i = s.Length - 1 ; i>=0 ; i--)
x = x + s[i];
for (int i = s.Length-1; i >=0; i--)
revs += s[i].ToString();
}
if (revs == s)
Console.WriteLine( x + " " + "Думата е палиндром");
else
Console.WriteLine( x + " " + "Думата не е палиндром ");
Console.ReadLine();