#include <bits/stdc++.h>
using namespace std;
inline void Boost() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  Boost();
  int n;
  cin >> n;
  int MN = INT_MAX, MX = -1;
  vector<int> v(3 * n);
  for (int i = 0; i < n; ++i) {
    cin >> v[i];
    v[i + n] = v[i + 2 * n] = v[i];
    MN = min(MN, v[i]);
    MX = max(MX, v[i]);
  }
  if (MN * 2 >= MX) {
    for (int i = 0; i < n; ++i) cout << "-1 ";
    return 0;
  }
  set<pair<int, int> > Set;
  vector<int> DP(3 * n, -1);
  for (int i = 0, cnt = 0; cnt < 3 * n; ++cnt, i = (i + 1) % n) {
    if (Set.empty()) {
      Set.insert({v[i], cnt});
    } else {
      int mx = (Set.rbegin())->first;
      while (v[i] * 2 < mx) {
        int pos = (Set.rbegin())->second;
        for (int j = pos; j >= 0 && DP[j] == -1; --j) {
          DP[j] = cnt - j;
          Set.erase({v[j], j});
        }
        if (Set.empty()) break;
        mx = (Set.rbegin())->first;
      }
      Set.insert({v[i], cnt});
    }
  }
  for (int i = 0; i < n; ++i) {
    cout << DP[i] << " ";
  }
  return 0;
}
