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