#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> a(n);
  vector<long long> b(n);
  long long suma = 0, sumb = 0;
  for (int i = (int)(0); i < (int)(n); ++i) {
    cin >> a[i];
    suma += a[i];
  }
  for (int i = (int)(0); i < (int)(n); ++i) {
    cin >> b[i];
    sumb += b[i];
  }
  if (suma < sumb) {
    cout << -1 << endl;
    return 0;
  }
  vector<long long> dif(n);
  for (int i = (int)(0); i < (int)(n); ++i) {
    dif[i] = a[i] - b[i];
    cout << dif[i] << " ";
  }
  cout << endl;
  sort((dif).begin(), (dif).end());
  int ans = 0;
  long long sum1 = 0, sum2 = 0;
  for (int i = 0; dif[i] < 0; i++) {
    sum1 += dif[i];
    ans++;
  }
  for (int i = n - 1; sum1 + sum2 < 0; i--) {
    sum2 += dif[i];
    ans++;
  }
  cout << ans << endl;
}
