What is wrong with this code? CNOTE problem

My issue

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		int ct=0;
		for(int i=0;i<t;i++)
		{
		    
		    int x=sc.nextInt();
		    int y=sc.nextInt();
		    int k=sc.nextInt();
		    int n=sc.nextInt();
		    int[] p=new int[n];
		    int[] c=new int[n];
		    for(int j=0;j<n;j++)
		    {
		         p[j]=sc.nextInt();
		         c[j]=sc.nextInt();
		       
		          if((p[j]+y)>=x && c[j]<=k)
		        {
		          ct=1;
		           
		        }
		       }
		       if(ct==1)
		       System.out.println("LuckyChef");
		       else
		       System.out.println("UnluckyChef");
		}
		    
	}
}

Problem Link: CNOTE Problem - CodeChef