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