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