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