using System;
public class Program
{
public static void Main()
String str = Console.ReadLine();
String revstr = "";
for(int i = str.Length -1; i >= 0; i--)
revstr += str[i];
}
Console.WriteLine(revstr);