using System; using System.Collections.Generic; using System.Linq; namespace y { class Program { static void Main(string[] args) { long a = (long)Math.Pow(10, int.Parse(Console.ReadLine())); for (int i = 1; i <= a / 2; i++) { if (a % i == 0) { Console.WriteLine(i); } } } } }