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