using System;
public class Program
{
public static void Main()
string new_sentence, sentence;
sentence = Console.ReadLine ();
int k, j;
string bin = " ";
for(int i=sentence.Length-1; i>0; i--)
k=i+1;
while(sentence[i]!= bin)
i++;
}
for(int j=i; j>=k; j--)
new_sentence += sentence[j];
i++;ss