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