#P7339. 『MdOI R4』Kotori

『MdOI R4』Kotori

Background

"Because"? So what?

"Because I am your younger sister, you want me to tell you not to stop you from fooling around?"

"Because I am your younger sister, you want me to watch you go to your death?"

"Because I am your younger sister, you want me to silently watch you possibly get killed?"

"Stop kidding. What is this supposed to be? I thought peace had finally come with great difficulty, and I thought Shido would finally stop getting hurt."

"I—I do not want Shido to die. I do not want to see Shido get hurt again. I cannot stand letting Shido feel pain anymore..."

"Because I—"

"Like Shido—"

Problem Description

The annual International Saimoe League (ISML) has begun. As the former "Moe King", Kotori naturally does not need to participate. However, she wants to help her older brother Shido win the title of "Burning King".

In this ISML, there are n=2kn=2^k contestants, numbered 1,2n1,2\ldots n. Shido's number is 11. The tournament is single-elimination. After each round, among the remaining contestants, the two with the smallest numbers become opponents, the 33rd and 44th smallest become opponents, and so on. The winner of a match is decided by fan votes: the side with more votes advances to the next round, and the side with fewer votes is eliminated.

For example, if there are 44 contestants in total, then in the first round contestants 11 and 22 play a match, and contestants 33 and 44 play a match. Then the winners of the two matches play one more match to compete for the overall championship. The overall champion will receive the title of "Burning King".

Each character has a fan club. The number of members in contestant ii's fan club is aia_i. In each round of voting, all fan club members will and will only vote for their corresponding contestant.

In addition, Kotori has a team of mm people, who will always follow Kotori's vote. That is, in every match, Kotori can add mm votes to either of the two contestants in that match. Note that in one round there may be multiple matches, and each match always has exactly two contestants.

Kotori also has a privilege: when the two sides have the same number of votes in a match, as the Moe King she can decide the winner of that match.

Now Kotori wants to know whether she has the ability to help her brother become the champion and obtain the title of "Burning King".

Input Format

This problem contains multiple test cases. The first line contains a positive integer TT indicating the number of test cases.

Then follow TT test cases. Each test case has two lines:

  • The first line contains two integers k,mk,m.
  • The second line contains 2k2^k integers. The ii-th integer denotes aia_i.

Output Format

Output TT lines, one line for each test case.

For each test case, output Kotori if it can be done; otherwise output Yoshino.

3
3 6
2 0 0 5 0 9 0 9
3 6
2 0 5 0 0 5 0 9
2 6
2 0 0 5

Yoshino
Kotori
Kotori

Hint

[Sample Explanation #1]

For test case 11, there is no plan that allows Shido to become the Burning King.

For test case 22, consider the following plan:

Round 11:

  • Contestants 11 and 22 play. Give the votes to contestant 11, and contestant 22 is eliminated.
  • Contestants 33 and 44 play. Give the votes to contestant 33, and contestant 44 is eliminated.
  • Contestants 55 and 66 play. Give the votes to contestant 66, and contestant 55 is eliminated.
  • Contestants 77 and 88 play. Give the votes to contestant 77, and contestant 77 is eliminated.

Round 22:

  • Contestants 11 and 33 play. Give the votes to contestant 11, and contestant 33 is eliminated.
  • Contestants 66 and 88 play. Give the votes to contestant 66, and contestant 88 is eliminated.

Round 33:

  • Contestants 11 and 66 play. Give the votes to contestant 11, and contestant 66 is eliminated.

[Constraints and Conventions]

This problem uses bundled tests.

Subtask ID kk\le n\sum n\le mm\le Score
11 00 11 No special limit 11
22 11 2112^{11} 99
33 44 2142^{14} 1515
44 No special limit 2202^{20} 00 1010
55 99 2112^{11} No special limit 2020
66 1515 2172^{17}
77 1818 2202^{20} 2525

For 100%100\% of the data, n220\sum n\le 2^{20}, 0k180\le k\le 18, and 0m,ai1090\le m,a_i\le 10^9.

[Tips and Help]

The input size of this problem is relatively large. Please choose a faster input method.

The "world saimoe tournament" in this problem is different from the real "world saimoe tournament". In this problem, please follow this problem statement.

Translated by ChatGPT 5