#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long first = 0;
  long long second = 0;
  bool isSame = true;
  bool cheek = true;
  long long dif;
  for (int i = 0; i < n; i++) {
    long long value;
    cin >> value;
    if (i == 0)
      dif = value;
    else if (dif != value)
      isSame = false;
    if (value > first) {
      second = first;
      first = value;
    } else if (value > second && (value != first)) {
      second = value;
    }
    if ((first != 0 && second != 0) && !(first / 2 >= second)) {
      cheek = false;
    }
  }
  bool flag = true;
  if (!(first / 2 >= second)) {
    flag = false;
  }
  if (first == 1 && second == 1) {
    flag = true;
  }
  if (isSame) {
    cout << "NO\n";
  } else {
    if (flag && cheek) {
      cout << "NO\n";
    } else {
      cout << "YES\n";
    }
  }
  return 0;
}
