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