#include "bits/stdc++.h" using namespace std; const char en = '\n'; using ll = long long; using ull = unsigned long long; int main(){ cin.tie(); ios::sync_with_stdio(false); int n,a[100],score[100]; fill_n(score,100,0); cin>>n; for(int i=0;i>a[i]; } int buf; for(int i=0;i>buf; score[buf]+=a[i]; } for(int i=1;iscore[0]){ cout<<"NO"<