using System; public class Mots { public static void Main() { int n = 0; string[] mots = new string[20]; try { string liste = Console.ReadLine(); mots = liste.Split(new char[] {' '}); foreach(string m in mots) { n++; } int length = n; for(int i = length - 1; i >= 0; i--) { Console.Out.WriteLine(mots[i]); } } catch (Exception e) { Console.Out.WriteLine("Entree invalide !"); } } // main() } // class Mots