Having trouble with the submission

This is the question:

This is the code:

But I’m getting wrong answer when ever I submit. Any help?

before K points are scored Chef’s turn to serve
that is
when (p1+p2)<k answer should be “CHEF”

change long into long int in your code

it does satisfy your mentioned condition, i rechecked.