#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
int main() {
  int n, c;
  cin >> n >> c;
  vector<long long> prefEle(n + 1, 0);
  vector<long long> prefStr(n + 1, 0);
  for (int i = 2; i <= n; i++) {
    cin >> prefStr[i];
  }
  for (int i = 2; i <= n; i++) {
    cin >> prefEle[i];
  }
  cout << 0 << " ";
  vector<vector<long long>> dp(n + 1, vector<long long>(2, 0));
  dp[1][1] = c;
  for (int i = 2; i <= n; i++) {
    dp[i][0] = min(dp[i - 1][0] + prefStr[i], dp[i - 1][1] + prefStr[i]);
    dp[i][1] = min(dp[i - 1][0] + prefEle[i] + c, dp[i - 1][1] + prefEle[i]);
    cout << min(dp[i][0], dp[i][1]) << " ";
  }
  cout << endl;
  return 0;
}
