#include <bits/stdc++.h>
using namespace std;
void init() {}
int n;
map<int, int> mp;
int a[200007];
int dp[200007];
int main() {
  init();
  cin >> n;
  dp[0] = 1;
  int ans = 0;
  for (int i = 0; i < n; ++i) {
    scanf("%d", &a[i]);
    int pos;
    if (a[i] <= a[i - 1] * 2)
      pos = i - 1;
    else
      pos = i;
    if (pos != i) {
      dp[i] = dp[pos] + 1;
    } else
      dp[i] = 1;
    if (dp[i] > ans) ans = dp[i];
  }
  cout << ans << endl;
  return 0;
}
