#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long a[200200];
  for (long long i = 0; i < n; i++) cin >> a[i];
  long long coun = 0, ans = 0;
  for (long long i = 0; i < n; i++) {
    for (long long cou = i; coun < n - 1; coun++)
      if (a[coun + 1] > 2 * a[coun]) break;
    ans = max(ans, coun - i + 1);
    i = coun++;
  }
  cout << ans << endl;
  return 0;
}
