#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  int n;
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);
  std::cin >> n;
  std::vector<int> v(n);
  for (int &a : v) std::cin >> a;
  int ans = 1;
  int cur = v[0], cur_ans = 1;
  for (int i = 1; i < n; ++i) {
    if (v[i] <= cur * 2) {
      cur_ans++;
    } else {
      ans = std::max(ans, cur_ans);
      cur_ans = 1;
    }
    cur = v[i];
  }
  ans = std::max(ans, cur_ans);
  std::cout << ans << std::endl;
  return 0;
}
