#include <bits/stdc++.h>
using namespace std;
int n, l, r, p, mmax = 0, mmin = 1999999999;
int a[100005];
int main() {
  cin >> n >> l >> r;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    cin >> p;
    a[i] += p;
    mmin = min(a[i], mmin);
    mmax = max(a[i], mmax);
  }
  if (mmax - mmin > r - l)
    cout << "-1";
  else {
    for (int i = 0; i < n; i++) cout << a[i] - mmin + l << " ";
  }
  return 0;
}
