#include <bits/stdc++.h>   using namespace std;   bool cmp(int a, int b) { return a > b; }   int main() {     long long a[100005];     long long b[100005];     int n;     cin >> n;     long long sum = 0;     for (int i = 1; i <= n; i++) {       cin >> a[i];       sum += a[i];     }     for (int i = 1; i <= n; i++) cin >> b[i];     if (n == 2) {       cout <<  YES  << endl;       return 0;     }     if (n == 1 || n == 0) {       cout <<  NO  << endl;       return 0;     }     sort(b + 1, b + n + 1, cmp);     if (b[1] + b[2] >= sum) {       cout <<  YES  << endl;     } else       cout <<  NO  << endl;   }   