#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, c;
  cin >> n >> c;
  vector<int> s(n - 1), e(n - 1);
  for (int i = 0; i < n - 1; ++i) {
    cin >> s[i];
  }
  for (int i = 0; i < n - 1; ++i) {
    cin >> e[i];
  }
  int prevStairs = 0, prevElevator = c;
  cout << 0 << " ";
  for (int i = 1; i < n; ++i) {
    int stairs = s[i - 1];
    int elevator = e[i - 1];
    int nxtStairs = min(prevStairs + stairs, prevElevator + stairs);
    int nxtElevator = min(prevStairs + elevator + c, prevElevator + elevator);
    cout << min(nxtStairs, nxtElevator) << " ";
    prevStairs = nxtStairs;
    prevElevator = nxtElevator;
  }
  cout << '\n';
  return 0;
}
