#include #define rep(i, l, r) for (int i = (l); i < (r); i++) using namespace std; typedef long long ll; int main() { ll N, K; cin >> N >> K; if (N == 2) { cout << K + 1 << " " << (K + 1) * K << endl; } else { rep(i, 0, N - 3) cout << "1 "; cout << "2 " << K << " " << K + N - 1 << endl; } }