#include <bits/stdc++.h>
using namespace std;
int main() {
  long N, N2;
  cin >> N;
  N2 = N << 1;
  vector<long> A(3 * N);
  for (long i = 0; i < N; ++i) {
    cin >> A[i];
    A[i + N] = A[i + N2] = A[i];
  }
  vector<long> Answer(N);
  multiset<long> S;
  long k = 0;
  for (long i = 0; i < N; ++i) {
    while ((k < i + N2) && (S.empty() || (A[k] >= ((*S.rbegin() + 1) >> 1)))) {
      S.insert(A[k]);
      ++k;
    }
    Answer[i] = k - i;
    S.erase(S.find(A[i]));
  }
  N <<= 1;
  for (long &x : Answer) cout << (x == N ? -1 : x) << ' ';
  cout << endl;
}
