#include <bits/stdc++.h>
using namespace std;
long long n, c, a[1005000], b[1005000], dp[1005000][2];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> c;
  for (int i = 1; i < n; i++) cin >> a[i];
  for (int i = 1; i < n; i++) cin >> b[i];
  dp[0][0] = 0;
  dp[0][1] = c;
  cout << 0 << ' ';
  for (int i = 1; i < n; i++) {
    dp[i][0] =
        min(dp[i - 1][0] + a[i], min(dp[i - 1][1], dp[i - 1][0] + c) + b[i]);
    dp[i][1] =
        min(dp[i - 1][1] + b[i], min(dp[i - 1][0] + c, dp[i - 1][1]) + b[i]);
    cout << min(dp[i][0], dp[i][1]) << ' ';
  }
  return 0;
}
