using System.Collections.Generic; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var a = new List(); for (int i = 0; i <= n; i++) for (int j = 0; j <= n; j++) { var b1 = (long)Math.Pow(2, i); var b2 = (long)Math.Pow(5, j); a.Add(b1 * b2); } a.Sort(); foreach (var x in a) Console.WriteLine(x); } }