import java.util.Scanner; import java.util.Arrays; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = 0; long n = sc.nextLong(), a[] = new long[(int)Math.pow(n + 1, 2)], t = 0; sc.close(); for(int i = 0; i <= n; ++i) { for(int j = 0; j <= n; ++j) { a[k] = (long)Math.pow(2, i) * (long)Math.pow(5, j); ++k; } } Arrays.sort(a); for(int i = 0; i < k; ++i) { if(a[i] != t) System.out.println(a[i]); t = a[i]; } } }