In this problem, we have to find out if Drake's team can attend the ICPC regional contest. So, to find that out we can follow the below steps:
Count the number of teams solving at least 1 problem
If the count is greater than 2 and N is greater than 1, then print Yes.
Or else if N is equal to 3, then print Yes.
Otherwise, print No.