#include <bits/stdc++.h>
using namespace std;
int n;
int a[1000000];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int ans = 1, sum = 1;
  int t = a[1];
  for (int i = 2; i <= n; i++) {
    if (a[i] <= t * 2) {
      t = a[i];
      sum++;
      ans = max(sum, ans);
    } else {
      t = a[i];
      ans = max(sum, ans);
      sum = 1;
    }
  }
  cout << ans;
}
