#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < (n); ++i) cin >> arr[i];
  int ans = 1, idx = 1, cnt = 1;
  while (idx < n) {
    ans = (ans > cnt) ? ans : cnt;
    if (arr[idx] <= 2 * arr[idx - 1])
      ++cnt;
    else
      cnt = 1;
    ++idx;
  }
  ans = (ans > cnt) ? ans : cnt;
  cout << ans << '\n';
  return 0;
}
