using System; using System.Collections.Generic; namespace y { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ans = new List(); for (int i = 0; i <= n; i++) { long a = (long)Math.Pow(2, i); for (int j = 0; j <= n; j++) { ans.Add( a * (long)Math.Pow(5, j)); } } ans.Sort(); foreach (var x in ans) { Console.WriteLine(x); } } } }