import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); PriorityQueue queue = new PriorityQueue<>(); for (int i = 0; i <= n; i++) { for (int j = 0; j <= n; j++) { queue.add((long)(Math.pow(2, i) * Math.pow(5, j))); } } StringBuilder sb = new StringBuilder(); while (queue.size() > 0) { sb.append(queue.poll()).append("\n"); } System.out.print(sb); } }