Problem Description
Alice and Bob are very bored, so they decided to play a short game on a piece of paper. First, they write down numbers . Then they calculate the score, which is the arithmetic mean of the list and write it at the edge of the paper so they don't forget.
Alice and Bob each have exactly one turn; Alice goes first. On each turn, a player chooses any element and removes it from the list. Once both players have finished their turns, the score is calculated again with the new list. If the final score is less than the initial score, Alice wins; if it remains the same, the game ends in a Tie; otherwise, Bob wins.
If Alice and Bob play optimally, output the result of the game.
- Arithmetic mean of a list of size is calculated as:
Input format
The first line contains --- the number of elements in .
The next line contains numbers --- the initial list before any changes.
Output format
For each test, output on a separate line:
Alice, if the final score is less than the initial score.Tie, if the final score will be the same as the initial score.Bob, if the final score is greater than the initial score.
Scoring system
| Group | Additional constraints | Points | Required subtasks |
|---|---|---|---|
| 0 | Tests from examples | 0 | — |
| 1 | 20 | — | |
| 2 | All are the same |
Examples
4 1 2 3 4
Tie
3 76 99 72
Alice