#include using namespace std; #define all(x) (x).begin(),(x).end() #define print(x) cout << (x) << '\n' typedef long long ll; using P = pair; using pll = pair; using Graph = vector>; const ll MOD = 1000000007; //const ll MOD = 998244353; template inline bool chmax(T &a, T b) {return a < b ? a = b, true : false;} template inline bool chmin(T &a, T b) {return a > b ? a = b, true : false;} const double pi = atan(double(1)) * double(4); void solve(){ ll n, k; cin >> n >> k; vector ans(n, 1LL); if(n == 2){ cout << k + 1 << " " << k * (k + 1) << endl; return; } for(int i = 0; i < n - 3; i++) cout << 1 << " "; cout << 2 << " " << k << " " << (k + (n - 3 + 2)) << endl; return; } int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(18); int t; //cin >> t; t = 1; while(t--) solve(); return 0; }