#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int a[maxn], p[maxn], b[maxn];
int main() {
  int n, l, r;
  while (cin >> n >> l >> r) {
    int i;
    for (i = 0; i < n; i++) cin >> a[i];
    for (i = 0; i < n; i++) cin >> p[i];
    int max = 0, min = 1e9 + 10;
    for (i = 0; i < n; i++) {
      b[i] = a[i] + p[i];
      if (b[i] < min) min = b[i];
      if (b[i] > max) max = b[i];
    }
    if (max > r + min - l)
      cout << "-1" << endl;
    else {
      for (i = 0; i < n; i++) cout << b[i] - min + l << " ";
      cout << endl;
    }
  }
  return 0;
}
