//Jan Kenneth B. Aniñon
using System;
public class Program
{
public static void Main()
Console.Write("Input a sentence: ");
string s = Console.ReadLine();
string[] words = s.Split(' ');
Array.Reverse(words);
s = String.Join(" ", words);
Console.WriteLine("Reverse sentence:" + " " + s );
}