#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, c;
  cin >> n >> c;
  long long ar[n - 1];
  long long br[n - 1];
  for (long long i = 0; i < n - 1; i++) cin >> ar[i];
  for (long long i = 0; i < n - 1; i++) cin >> br[i];
  long long dp[n][2];
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < 2; j++) {
      dp[i][j] = 100000000000000;
    }
  }
  dp[0][0] = 0;
  dp[0][1] = c;
  for (long long i = 1; i < n; i++) {
    dp[i][0] = min(dp[i - 1][0] + ar[i - 1], dp[i - 1][1] + ar[i - 1]);
    dp[i][1] = min(dp[i - 1][0] + br[i - 1] + c, dp[i - 1][1] + br[i - 1]);
  }
  for (long long i = 0; i < n; i++) {
    cout << min(dp[i][0], dp[i][1]) << " ";
  }
  cout << "\n";
}
