#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long int n, c;
  cin >> n >> c;
  vector<long long int> a(n - 1);
  for (int i = 0; i < n - 1; i++) cin >> a[i];
  vector<long long int> b(n);
  for (int i = 0; i < n - 1; i++) cin >> b[i];
  vector<long long int> dp1(n);
  dp1[0] = 0;
  vector<long long int> dp2(n);
  dp2[0] = c;
  for (int i = 1; i < n; i++) {
    dp1[i] = min(dp1[i - 1], dp2[i - 1]) + a[i - 1];
    dp2[i] = min(dp1[i - 1] + c, dp2[i - 1]) + b[i - 1];
  }
  cout << 0 << " ";
  for (int i = 1; i < n; i++) cout << min(dp1[i], dp2[i]) << " ";
  cout << endl;
  return 0;
}
