using System;
using System.Text;
public class Program
{
public static void Main()
Console.WriteLine("Enter the sentence");
string str = Console.ReadLine();
int Start=str.Length-1;
int End=str.Length-1;
int i;
StringBuilder sb = new StringBuilder();
while(Start>0)
if(str[Start]==' ')
i=Start+1;
while(i<=End)
sb.Append(str[i]);
i++;
}
sb.Append(' ');
End = Start-1;