using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization.Formatters; using static System.Console; using static System.Math; namespace YukiCoder { public class Program { public static void Main(string[] args) { new Program().Solve(); } public void Solve() { int n = int.Parse(Console.ReadLine()); double N = Math.Pow(10,n); var divisorStack = new Stack(); for (int i = 1; i <= Math.Sqrt(N); i++) { if (N % i == 0) { if ((double)N/i != Math.Sqrt(N)) Console.WriteLine(i); divisorStack.Push(N/i); } } while (divisorStack.Count != 0) { Console.WriteLine(divisorStack.Pop()); } } } }