using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace YukiCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); List na = new List(); long n5 = 1; for (int i = 0; i <= N; i++, n5 *= 5) { long n2 = 1; for (int j = 0; j <= N; j++, n2 *= 2) { na.Add(n5 * n2); } } foreach (var ss in na.OrderBy(a => a)) { Console.WriteLine(ss); } Console.ReadLine(); } } }