#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, c;
  cin >> n >> c;
  long long int strg[n][2];
  strg[0][0] = 0;
  strg[0][1] = c;
  long long int arr[n - 1], barr[n - 1];
  for (long long int i = 1; i < n; ++i) {
    cin >> arr[i - 1];
  }
  for (long long int i = 1; i < n; ++i) {
    cin >> barr[i - 1];
  }
  for (long long int i = 1; i < n; ++i) {
    strg[i][0] = min(strg[i - 1][0], strg[i - 1][1]) + arr[i - 1];
    strg[i][1] =
        min(strg[i - 1][0] + barr[i - 1] + c, strg[i - 1][1] + barr[i - 1]);
  }
  for (long long int i = 0; i < n; ++i) {
    cout << min(strg[i][0], strg[i][1]) << " ";
  }
}
