#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 9, inf = 1e18, mod = 1e9 + 7;
long long sol[2 * N];
long long ar[N * 2];
long long br[N * 2], cum[N * 2], c;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n >> c;
  ar[1] = br[1] = cum[1] = cum[0] = 0;
  for (int i = 2; i <= n; i++) cin >> ar[i];
  for (int i = 2; i <= n; i++) {
    cin >> br[i];
    cum[i] = cum[i - 1] + br[i];
  }
  long long ans[2][n + 5];
  ans[0][0] = 0;
  ans[1][0] = c;
  for (int i = 1; i <= n; i++) {
    ans[0][i] = ar[i] + min(ans[0][i - 1], ans[1][i - 1]);
    ans[1][i] = br[i] + min(c + ans[0][i - 1], ans[1][i - 1]);
    sol[i] = min(ans[0][i], ans[1][i]);
  }
  for (int i = 1; i <= n; i++) cout << sol[i] << " ";
}
