import java.util.Scanner; import java.util.TreeSet; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); TreeSet set = new TreeSet<>(); for(long i = 0 ; i <= n ; i++) { for(long j = 0 ; j <= n ; j++) { long x = 1; for(long k = 0 ; k < i ; k++) x *= 2; for(long k = 0 ; k < j ; k++) x *= 5; set.add(x); } } for(long e : set) { System.out.println(e); } } }