#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c;
  cin >> n >> c;
  long long s[n - 1], e[n - 1];
  for (int i = 0; i < n - 1; i++) cin >> s[i];
  for (int i = 0; i < n - 1; i++) cin >> e[i];
  long long dp[n][2];
  dp[0][0] = 0, dp[0][1] = c;
  for (int i = 1; i < n; i++) {
    dp[i][0] = min(dp[i - 1][0], dp[i - 1][1]) + s[i - 1];
    dp[i][1] = min(dp[i - 1][0] + e[i - 1] + c, dp[i - 1][1] + e[i - 1]);
  }
  for (int i = 0; i < n; i++) cout << min(dp[i][0], dp[i][1]) << " ";
  return 0;
}
