#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, arr[200100], cnt, j, i, ans;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> arr[i];
  }
  ans = 1;
  cnt = 1;
  i = 0;
  j = 1;
  while (j < n) {
    if (arr[i] * 2 >= arr[j]) {
      cnt++;
      ans = max(cnt, ans);
      j++;
      i++;
    } else {
      i++;
      j++;
      cnt = 1;
    }
  }
  cout << ans << endl;
  return 0;
}
