#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 5;
const long long INF = 8e18 + 5;
const int maxn = 2e5 + 5;
int dp[maxn][2], a[maxn], b[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.precision(10);
  cout << fixed;
  int n, c;
  cin >> n >> c;
  dp[1][1] = inf;
  for (int i = 2; i <= n; i++) cin >> a[i];
  for (int i = 2; i <= n; i++) cin >> b[i];
  for (int i = 2; i <= n; i++) {
    dp[i][0] = min(dp[i - 1][0] + a[i], dp[i - 1][1] + a[i]);
    dp[i][1] = min(dp[i - 1][1] + b[i], dp[i - 1][0] + b[i] + c);
  }
  for (int i = 1; i <= n; ++i) cout << min(dp[i][0], dp[i][1]) << ' ';
  return 0;
}
