#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  cin >> n >> c;
  long long stairs[n], elevator[n];
  for (int i = 0; i < n - 1; i++) cin >> stairs[i];
  for (int i = 0; i < n - 1; i++) cin >> elevator[i];
  long long dp[n + 10][2];
  memset(dp, 0, sizeof(dp));
  dp[0][0] = 0;
  dp[0][1] = c;
  cout << 0 << endl;
  for (int i = 1; i < n; i++) {
    dp[i][0] =
        min(dp[i - 1][0] + stairs[i - 1], dp[i - 1][1] + elevator[i - 1]);
    dp[i][1] =
        min(dp[i - 1][0] + stairs[i - 1] + c, dp[i - 1][1] + elevator[i - 1]);
    cout << min(dp[i][0], dp[i][1]) << endl;
  }
}
