#include <bits/stdc++.h>
using namespace std;
int n, l, r;
int main() {
  cin >> n >> l >> r;
  vector<int> a(n), b(n), c(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < n; ++i) {
    cin >> c[i];
    b[i] = a[i] + c[i] - 1;
  }
  bool ok = true;
  vector<int>::iterator minb = min_element(b.begin(), b.end());
  int Min = *minb;
  for (int i = 0; i < n; ++i) {
    b[i] = b[i] - Min + l;
    if (b[i] > r) {
      ok = false;
      break;
    }
  }
  if (!ok)
    cout << "-1\n";
  else {
    for (int i = 0; i < n; ++i) cout << b[i] << " ";
    cout << "\n";
  }
  return 0;
}
