#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, c;
  cin >> n >> c;
  pair<long long int, long long int> A[n];
  for (int i = 1; i <= n - 1; ++i) {
    cin >> A[i].first;
  }
  for (int i = 1; i <= n - 1; ++i) {
    cin >> A[i].second;
  }
  pair<long long int, long long int> dp[n];
  dp[0] = make_pair(0, c);
  for (int i = 1; i <= n - 1; ++i) {
    dp[i].first = min(dp[i - 1].first, dp[i - 1].second) + A[i].first;
    dp[i].second =
        min(dp[i - 1].first + A[i].second + c, dp[i - 1].second + A[i].second);
  }
  for (int i = 0; i < n; ++i) {
    cout << min(dp[i].first, dp[i].second) << " ";
  }
  cout << endl;
}
