#include <bits/stdc++.h>
using namespace std;
long long int MOD = 1000000007LL;
long long int fastpow(long long int base, long long int exp) {
  long long int res = 1;
  while (exp > 0) {
    if (exp % 2 == 1) res = (res * base) % MOD;
    base = (base * base) % MOD;
    exp /= 2;
  }
  return res % MOD;
}
template <typename T>
T mult(T x, T y, T mod) {
  return (((x % mod) * (y % mod)) % mod);
}
template <typename T>
T add(T x, T y, T mod) {
  return (((x % mod) + (y % mod)) % mod);
}
template <typename T>
T gcd(T x, T y) {
  return (!y ? x : gcd(y, x % y));
}
template <typename T>
T lcm(T x, T y) {
  return ((x * y) / gcd(x, y));
}
int32_t main() {
  long long int AC = 1, i, j, n, a[200005], dp[200005];
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  dp[n - 1] = 1;
  for (i = n - 2; i >= 0; i--) {
    dp[i] = 1;
    if (a[i] * 2 >= a[i + 1]) {
      dp[i] += dp[i + 1];
    }
    AC = max(AC, dp[i]);
  }
  cout << AC;
  return 0;
}
