Help me in solving CNOTE problem! I don't know which test case is giving wrong answer to this code

My issue

My code

#include <iostream>
#include <vector>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--){
	    int x, y, k, n;
	    cin>>x>>y>>k>>n;
	    int flag=0;
	    int book, price;
	    for(int i=0; i<n; i++){
	        cin>>book>>price;
	        if((x-y)<=book){
	            if(price<=k){ cout<<"LuckyChef"<<endl;
	                flag=1;
	                break;
	            }
	        }
	    }if(flag==0) cout<<"UnluckyChef"<<endl;
	}
	return 0;
}

Problem Link: CNOTE Problem - CodeChef