#include #include #include #include #include #include #include #include #include const long long INF = 1e6+7; const long long MOD = 1e9+7; const double PI=acos(-1); using namespace std; int main(){ int n; cin >> n; vector a(n,0),b(n,0); for(int i=0;i> a[i]; } for(int i=0;i> b[i]; } int cnt_w=0,cnt_l=0; for(int i=0;i=cnt_l){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }