#include <bits/stdc++.h>
using namespace std;
int ara[200010];
int main() {
  int n, i;
  while (cin >> n) {
    int cnt = 1, mx = 0;
    for (i = 0; i < n; i++) cin >> ara[i];
    for (i = 1; i < n; i++) {
      if (ara[i] <= ara[i - 1] * 2)
        cnt++;
      else {
        mx = max(mx, cnt);
        cnt = 1;
      }
    }
    mx = max(mx, cnt);
    cout << mx << endl;
  }
  return 0;
}
