#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  long long mx = 1;
  long long cnt = 1;
  for (long long i = 0; i < n - 1; ++i) {
    cnt = 1;
    while (a[i] * 2 >= a[i + 1]) {
      i++;
      cnt++;
      if (i == n - 1) break;
    }
    mx = max(mx, cnt);
  }
  cout << mx;
}
