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