#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  cin >> n >> c;
  int a[n];
  int b[n];
  bool onlift = false;
  for (int i = 1; i < n; i++) cin >> a[i];
  for (int i = 1; i < n; i++) cin >> b[i];
  int d[n][2];
  d[0][0] = 0;
  d[0][1] = c;
  for (int i = 1; i < n; i++) {
    d[i][0] = min(d[i - 1][0] + a[i], d[i - 1][1] + a[i]);
    d[i][1] = min(d[i - 1][1] + b[i], d[i - 1][0] + b[i] + c);
  }
  for (int i = 0; i < n; i++) {
    cout << min(d[i][0], d[i][1]) << ' ';
  }
  cout << endl;
}
