#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, c;
  cin >> n >> c;
  vector<vector<int>> dp(n, vector<int>(2));
  int as[n - 1];
  int bs[n - 1];
  for (int i = 0; i < n - 1; i++) {
    cin >> as[i];
  }
  for (int i = 0; i < n - 1; i++) {
    cin >> bs[i];
  }
  dp[0][0] = 0;
  dp[0][1] = c;
  for (int i = 1; i < n; i++) {
    int smaller = dp[i - 1][0] < dp[i - 1][1] ? dp[i - 1][0] : dp[i - 1][1];
    dp[i][0] = as[i - 1] + smaller;
    int temp1 = c + bs[i - 1] + dp[i - 1][0];
    int temp2 = bs[i - 1] + dp[i - 1][1];
    dp[i][1] = temp1 < temp2 ? temp1 : temp2;
  }
  for (int i = 0; i < n; i++) {
    int smaller = dp[i][0] < dp[i][1] ? dp[i][0] : dp[i][1];
    cout << smaller << " ";
  }
  cout << endl;
}
