#include <bits/stdc++.h>
using namespace std;
const long long int N = 300005;
vector<pair<long long int, long long int>> a;
long long int dp[N][2];
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, c;
  cin >> n >> c;
  a.clear();
  a.resize(n);
  for (long long int i = 1; i <= n - 1; i++) cin >> a[i].first;
  for (long long int i = 1; i <= n - 1; i++) cin >> a[i].second;
  dp[0][0] = 0;
  dp[0][1] = 1e18;
  cout << "0 ";
  for (long long int i = 1; i < n; i++) {
    dp[i][0] = min(dp[i - 1][0], dp[i - 1][1]) + a[i].first;
    dp[i][1] = min(dp[i - 1][0] + c, dp[i - 1][1]) + a[i].second;
    cout << min(dp[i][0], dp[i][1]) << " ";
  }
}
