using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var N = int.Parse(ReadLine()); var s = new HashSet(); for (int i = 0; i <= N; i++) { for (int j = 0; j <= N; j++) { s.Add((long)Math.Pow(2, i) * (long)Math.Pow(5, j)); } } var l = s.ToList(); l.Sort(); foreach (var p in l) { WriteLine(p); } } }