using System;
public class Program
{
public static void Main(string[] args)
/*string Str, reversestring = "";
int Length;
Console.Write("Enter A String : ");
Str = Console.ReadLine();
Length = Str.Length - 1;
while (Length >= 0)
reversestring = reversestring + Str[Length];
Length--;
}
Console.WriteLine("Reverse String Is : {0}", reversestring);*/
int temp;
string word = Console.ReadLine();
string[] a = word.Split(' ');
int k = a.Length - 1;
temp = k;
for (int i = k; temp >= 0; k--)
word =word+a[temp];
// Console.Write(a[temp] + "" + ' ');
--temp;
Console.WriteLine("Reverse String Is : {0}", word);