#include <bits/stdc++.h>
using namespace std;
int n, k;
long long a[300005];
int main() {
  ios::sync_with_stdio(0);
  while (cin >> n) {
    int maxx = -1, last, ans = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (i == 0) {
        last = a[0], ans = 1;
        continue;
      }
      if (2 * last >= a[i]) {
        ++ans;
        maxx = max(maxx, ans);
      } else {
        ans = 1;
      }
      last = a[i];
    }
    if (maxx != -1)
      cout << maxx << endl;
    else
      cout << 1 << endl;
  }
  return 0;
}
