import java.util.*;


public class Solution {
    public int[] printNumbers (int n) {
        // write code here
        // 找到该n+1位的最小数字
        int end = 1;
        for(int i = 1; i <= n; i++){
            end *= 10;
        }
        // 从1遍历到n+1位数的最小数字输出
        int[] res = new int[end - 1];
        for(int i = 1; i < end; i++){
            res[i - 1] = i;
        }
        return res;
    }
}