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