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