#include <bits/stdc++.h>
using namespace std;
long long int TOTALSUMM(long long int N, long long int A, long long int D) {
  long long int P, Q, R, R1;
  P = 2 * A;
  Q = (N - 1) * D;
  R = P + Q;
  R1 = R * N;
  R1 /= 2;
  return R1;
}
long long int dp1[200009];
long long int dp2[200009];
long long int a1[200009];
long long int a2[200009];
int main() {
  long long int TEST, TEST1;
  long long int n, c, i, j;
  cin >> n >> c;
  for (i = 1; i <= n - 1; i++) cin >> a1[i];
  for (i = 1; i <= n - 1; i++) cin >> a2[i];
  dp1[1] = a1[1];
  dp2[1] = a2[1] + c;
  cout << "0 ";
  for (i = 2; i <= n; i++) {
    cout << min(dp1[i - 1], dp2[i - 1]) << " ";
    dp1[i] = min(dp1[i - 1] + a1[i], dp2[i - 1] + a1[i]);
    dp2[i] = min(dp2[i - 1] + a2[i], dp1[i - 1] + a2[i] + c);
  }
}
