#include <bits/stdc++.h>
using namespace std;
const int siz = 2e5 + 9;
int a[siz], b[siz], dp1[siz], dp2[siz];
int n, c;
int main() {
  cin >> n >> c;
  for (int i = 1; i < n; ++i) cin >> a[i];
  for (int i = 1; i < n; ++i) cin >> b[i];
  dp1[1] = a[1];
  dp2[1] = b[1] + c;
  for (int i = 2; i < n; ++i) {
    dp1[i] = min(dp1[i - 1] + a[i], dp2[i - 1] + a[i]);
    dp2[i] = min(dp1[i - 1] + b[i] + c, dp2[i - 1] + b[i]);
  }
  for (int i = 0; i < n; ++i) cout << min(dp1[i], dp2[i]) << " ";
  return 0;
}
