#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> a(n + 5, 0);
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << 1 << endl;
    return 0;
  }
  int ans = 1;
  int tmp = 1;
  for (int i = 2; i <= n; i++) {
    if (2 * a[i - 1] >= a[i]) {
      tmp++;
      ans = max(ans, tmp);
    } else {
      ans = max(ans, tmp);
      tmp = 1;
    }
  }
  cout << ans << endl;
  return 0;
}
