Voting#1812

Voting

1 second
64 megabytes
Very easy

A committee clerk is good at recording votes, but not so good at counting and determining the outcome correctly. As a roll call vote proceeds, the clerk records votes as a sequence of letters, with one letter for every member of the committee:

Your job is to take this recorded list of votes and determine the outcome.

Rules: There must be a quorum. If at least half of the members were absent, respond "need quorum". Otherwise, votes are counted. If there are more yes than no votes, respond "yes". If there are more no than yes votes, respond "no". If the number of yes and no votes is the same, respond "tie".

Input

The input contains a series of votes, one per line, followed by a single line with the # character. Each vote consists entirely of the uppercase letters discussed above. Each vote will contain at least two letters and no more than letters.

Output

For each vote, the output is one line with the correct choice: "need quorum", "yes", "no" or "tie".

Examples

Example 1

Loading
Loading