#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >>t;
while(t--){
long int x,y,a[101],n,to=0,cp=0;
cin>>n>>x>>y;
for(int i=0;i<n;i++){
cin>>a[i];
to+=a[i];
}
cp=cp+x;
for(int i=0;i<n;i++){
if((a[i]-y)<=0){
a[i]=0;
}else{
a[i]=a[i]-y;
}
cp+=a[i];
}
// cout<<to<<" "<<cp<<endl;
if(cp<to){
cout<<"COUPON"<<endl;
}else{
cout<<"NO COUPON"<<endl;
}
to=0;
cp=0;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: