#include <bits/stdc++.h>
using namespace std;
int n, c;
vector<int> stairs, elavator;
const int sz = 1e6;
pair<int, int> res[sz];
int main() {
  cin >> n >> c;
  int x;
  for (int i = 1; i < n; i++) cin >> x, stairs.push_back(x);
  for (int i = 1; i < n; i++) cin >> x, elavator.push_back(x);
  res[0].first = 0;
  res[0].second = c;
  cout << 0;
  for (int i = 1; i < n; i++) {
    res[i].first = min(res[i - 1].first, res[i - 1].second) + stairs[i - 1];
    res[i].second =
        min(res[i - 1].first + c, res[i - 1].second) + elavator[i - 1];
    cout << ' ' << min(res[i].first, res[i].second);
  }
  return 0;
}
