#include <bits/stdc++.h>
using namespace std;
void fun() {
  long long n, c;
  cin >> n >> c;
  long long a[n - 1], b[n - 1];
  for (auto &i : a) cin >> i;
  for (auto &i : b) cin >> i;
  long long str[n], lif[n];
  str[0] = 0;
  lif[0] = c;
  for (int i = 1; i < n; i++) {
    str[i] = min(str[i - 1], lif[i - 1]) + a[i - 1];
    lif[i] = min(str[i - 1] + c + b[i - 1], lif[i - 1] + b[i - 1]);
  }
  for (int i = 0; i < n; i++) cout << min(str[i], lif[i]) << " ";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  srand(time(0));
  ;
  int t = 1;
  while (t--) {
    fun();
  }
}
