function main2(n, k) {
    if (k == 1) {
        return n - k + 1;
    }

    if (k == 2) {
        return (n - k) * (n - k - 1)
    }

    if (k == 3) {
        return "unknown"
    }
}

function Main(input) {
    const [N, K] = input.trim().split(" ").map(i => Number(i));
    for (let i = 1; i <= K; i++) {
        console.log(main2(N, i));
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));