#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main(){
    int h,n,sum,x;
    sum=0;
    cin>>n;
	for(int i=1;i<=n;i++){
		cin>>x;
		sum+=x;
	}
	cin>>h;
	if(h<x)cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
    return 0;
}