import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); long n = in.nextLong(); long m = (long)Math.pow(10, n); for(long i=1; i<=m; i++) { if(m % i == 0) System.out.println(i); } } }