#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int arr[n + 2];
  cin >> arr[0];
  long long int c = 1, mx = 1;
  for (long long int i = 1; i < n; i++) {
    cin >> arr[i];
    if (arr[i] <= arr[i - 1] * 2) {
      c++;
    } else {
      mx = max(c, mx);
      c = 1;
    }
  }
  mx = max(c, mx);
  cout << mx << endl;
}
