#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<int> contest(n);
  for (int &x : contest) {
    cin >> x;
  }
  int ans = 0;
  int right = 0;
  for (int i = 0; i < n; i++) {
    right = i;
    while (right + 1 < n && contest[right + 1] <= 2 * contest[right]) right++;
    ans = max(ans, right - i + 1);
    i = right;
  }
  cout << ans << endl;
  return 0;
}
