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