#include <bits/stdc++.h>
using namespace std;
long long a[200005], b[200005], dp[200005][2], elevator[200005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, c;
  cin >> n >> c;
  for (int i = 1; i < n; i++) cin >> a[i];
  for (int i = 1; i < n; i++) cin >> b[i];
  for (int i = 2; i <= n; i++) {
    dp[i][0] = min(dp[i - 1][0], dp[i - 1][1]) + a[i - 1];
    long long s_e = dp[i - 1][0] + b[i - 1] + c;
    long long e_e = dp[i - 1][1] + b[i - 1] + (elevator[i - 1] == 0 ? c : 0);
    if (s_e < e_e)
      dp[i][1] = s_e;
    else
      dp[i][1] = e_e;
    elevator[i] = 1;
  }
  for (int i = 1; i <= n; i++) {
    cout << min(dp[i][0], dp[i][1]) << " ";
  }
  return 0;
}
