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