#include <bits/stdc++.h>
using namespace std;
int a[200005];
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  int ans = 0;
  int head = 0, tail = 1;
  while (tail <= n) {
    if (head >= tail) tail = head + 1;
    while (tail < n && a[tail] * 2 >= a[tail + 1]) tail++;
    ans = max(ans, tail - head);
    head++;
  }
  cout << ans << endl;
  return 0;
}
