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