#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int a[n];
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long int prev = 1000000001;
  long long int count = 0;
  long long int maxn = 1;
  for (long long int i = 0; i < n; i++) {
    if (a[i] <= 2 * prev) {
      count++;
      prev = a[i];
    } else {
      maxn = max(maxn, count);
      count = 1;
      prev = a[i];
    }
  }
  maxn = max(maxn, count);
  cout << maxn << '\n';
}
