#include <bits/stdc++.h>
using namespace std;
long long gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return (a / gcd(a, b)) * b; }
int X[4] = {-1, 1, 0, 0};
int Y[4] = {0, 0, -1, 1};
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL);
  int t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n + 1];
    for (int i = 0; i < n; i++) cin >> a[i];
    a[n] = 1e18;
    long long ans = 1, l = 1;
    for (int i = 0; i < n; i++) {
      if (a[i + 1] <= 2 * a[i]) {
        l++;
      } else {
        ans = max(ans, l);
        l = 1;
      }
    }
    cout << ans << "\n";
  }
}
