import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); long max = 2147483647; List list = new ArrayList(); for(long i = 0 ; i < n ; i++ ){ for( long j = 0 ; j < n ; j++ ){ double calculation = Math.pow(2,i)*Math.pow(5,j); long check = (long)calculation; if(list.size() <= 0 || list.indexOf(check) == -1 ){ list.add(check); } } } Collections.sort(list); for (long ans : list) { System.out.println(ans); } } }