using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main(string[] args) { string stdin = Console.ReadLine(); long N = long.Parse(stdin); double d = Math.Pow(10, N); long x = (long)d; Console.WriteLine(1); if (N == 0) return; List answer = new List(); for (int i = 1; i <= N; i++) { answer.Add((long)Math.Pow(2, i)); answer.Add((long)Math.Pow(5, i)); } for (int i = 1; i <= N; i++) { for (int j = 1; j <= N; j++) { answer.Add((long)(Math.Pow(2, i)) * (long)(Math.Pow(5, j))); } } for (int i = 1; i <= N; i++) { for (int j = 1; j <= N; j++) { answer.Add((long)(Math.Pow(5, i)) * (long)(Math.Pow(2, j))); } } answer.Sort(); IEnumerable result = answer.Distinct(); long[] data = result.ToArray(); foreach (long a in data) { Console.WriteLine(a); } } }