#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  int now = 0;
  int val = 0;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    if (temp <= val * 2) {
      now++;
      val = temp;
    } else {
      ans = max(now, ans);
      now = 1;
      val = temp;
    }
  }
  ans = max(ans, now);
  cout << ans << endl;
  return 0;
}
