using System; using System.Linq; public class P0543 { public static void Main() { var ss = Console.ReadLine().Trim().Split(' ').Reverse().ToList(); Console.WriteLine(String.Join(" ", ss)); } }