#include <bits/stdc++.h>
using namespace std;
const int MAX = 2e5 + 5;
int stairs[MAX];
int elev[MAX];
int dp[MAX][2];
int mndist[MAX];
int n, c;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> c;
  for (int i = 0; i < n - 1; i++) cin >> stairs[i];
  for (int i = 0; i < n - 1; i++) cin >> elev[i];
  dp[0][1] = c;
  for (int i = 0; i < n; i++) {
    if (i == 0) continue;
    dp[i][0] = min(dp[i - 1][0] + stairs[i - 1], dp[i - 1][1] + stairs[i - 1]);
    dp[i][1] = min(dp[i - 1][0] + c + elev[i - 1], dp[i - 1][1] + elev[i - 1]);
  }
  for (int i = 0; i < n; i++) {
    cout << min(dp[i][0], dp[i][1]) << " ";
  }
}
