import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); List list = new ArrayList<>(1_000_000); list.add(1L); for (int i = 1; i <= N; i++) { long two = (long)Math.pow(2, i); list.add(two); for (int j = 1; j <= N; j++) { long five = (long)Math.pow(5, j); list.add(two * five); list.add(five); } } list.stream().distinct().sorted().forEach(System.out::println); } }