#include <bits/stdc++.h>
using namespace std;
const int N = 1e9 + 7;
void solve() {
  int n, c;
  cin >> n >> c;
  vector<int> s(n);
  vector<int> e(n);
  for (int i = 1; i < n; i++) cin >> s[i];
  for (int i = 1; i < n; i++) cin >> e[i];
  vector<pair<int, int>> dp(n);
  dp[0].first = 0;
  dp[0].second = c;
  for (int i = 1; i < n; i++) {
    dp[i].first = min(dp[i - 1].first + s[i], dp[i - 1].second + s[i]);
    dp[i].second = min(dp[i - 1].first + e[i] + c, dp[i - 1].second + e[i]);
  }
  cout << "0 ";
  for (int i = 1; i < n; i++) cout << min(dp[i].first, dp[i].second) << " ";
  cout << "\n";
}
int main() {
  solve();
  return 0;
}
