import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;

void main() {
    auto s = readln.split.map!(to!int);
    auto K = s[0];
    auto N = s[1];

    if (N == 1) {
        writeln(K/2+K%2);
        return;
    }
    
    if (K % 2 == 0) {
        write(K/2, " ");
        foreach (i; 0..N-1) write(K, " ");
        writeln;
        return;
    }

    int[] ans;
    foreach (i; 0..N) ans ~= K/2+1;

    foreach (_; 0..N/2) {
        if (ans.back == 1) {
            ans.popBack;
        } else {
            ans[$-1] = ans.back - 1;
            while (ans.length < N) ans ~= K;
        }
    }

    ans.map!(to!string).join(" ").writeln;
}
