#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:100000000000")
using namespace std;
uint32_t n, a_t, ans = 1, ans_t = 1;
set<uint64_t> a;
int main() {
  scanf("%d\n", &n);
  for (int32_t i = (0); i < (n); ++i) {
    scanf("%d\n", &a_t);
    a.insert(a_t);
  }
  auto it = a.begin();
  a_t = *it;
  ++it;
  while (it != a.end()) {
    if (a_t * 2 < *it) {
      ans = max(ans, ans_t);
      ans_t = 0;
    }
    ++ans_t;
    a_t = *it;
    ++it;
  }
  ans = max(ans, ans_t);
  printf("%d ", ans);
}
