#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC optimize("fast-math")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,tune=native")
const long long N = 2e5 + 10;
long long dp[N][2];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, c;
  cin >> n >> c;
  vector<long long> a(n), b(n);
  for (long long i = 0; i < n - 1; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i < n - 1; i++) {
    cin >> b[i];
  }
  cout << 0 << " ";
  dp[0][1] = c;
  for (long long i = 1; i < n; i++) {
    dp[i][0] = min(dp[i - 1][1], dp[i - 1][0]) + a[i - 1];
    dp[i][1] = min(dp[i - 1][1] + b[i - 1], dp[i - 1][0] + c + b[i - 1]);
    cout << min(dp[i][0], dp[i][1]) << " ";
  }
  return 0;
}
