#include <bits/stdc++.h>
using namespace std;
long long arr[300000];
signed main() {
  long long n;
  cin >> n;
  for (long long i = 1; i <= n; i++) cin >> arr[i];
  long long maxn = 1;
  long long cnt = 1;
  for (long long i = 2; i <= n; i++) {
    if (arr[i] <= 2 * arr[i - 1]) {
      cnt++;
      maxn = max(maxn, cnt);
    } else {
      cnt = 1;
    }
  }
  cout << maxn;
  return 0;
}
