#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<long long> arr(n);
  for (auto &it : arr) cin >> it;
  if (n == 1) {
    cout << 1;
    return 0;
  }
  int i = n - 2, cnt = 1, len = 1;
  while (i >= 0) {
    if (arr[i + 1] <= 2 * arr[i]) {
      cnt++;
      if (i == 0) {
        len = max(len, cnt);
      }
    } else {
      len = max(len, cnt);
      cnt = 1;
    }
    i--;
  }
  cout << len;
  return 0;
}
