#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 1, maxx = 0;
  cin >> n;
  long last, cur;
  cin >> cur;
  for (int i = 1; i < n; i++) {
    last = cur;
    cin >> cur;
    (cur > (last * 2)) ? maxx = max(maxx, c), c = 1 : c++;
  }
  cout << max(maxx, c);
}
