#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
using namespace std;
int main() {
  int n, x = 0, c = 1, ans = 1;
  cin >> n;
  int *a = new int[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n - 1; i++) {
    x = a[i];
    if (x * 2 >= a[i + 1]) {
      ++c;
      if (c > ans) {
        ans = c;
      }
    } else {
      c = 1;
    }
  }
  cout << ans;
  return 0;
}
