import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long a = 1; for(int i = 0 ; i < n ; i++) a *= 10; Map map = new HashMap<>(); for(long i = 1 ; i * i <= 1000000000000000000L ; i++) { if(a % i == 0) { map.put(i, 1L); map.put(a / i, 1L); } } List> entry = new ArrayList<>(map.entrySet()); Collections.sort(entry, new Comparator>() { public int compare(Entry e1, Entry e2) { return (int)(e1.getKey() - e2.getKey()); } }); for(Entry e : entry) { System.out.println(e.getKey()); } } }