#include <bits/stdc++.h>
using namespace std;
const int N = 200 * 1001;
int n, c, a[N], b[N], dp[N][2];
int main() {
  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][0] = 0;
  dp[0][1] = c;
  for (int i = 1; i < n; i++) {
    dp[i][0] = a[i] + min(dp[i - 1][0], dp[i - 1][1]);
    dp[i][1] = b[i] + min(dp[i - 1][0] + c, dp[i - 1][1]);
  }
  for (int i = 0; i < n; i++) cout << min(dp[i][0], dp[i][1]) << " ";
}
