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