123. Weird Dice

Problem Statement:
Ahmad and Salwa are obsessed with gambling, they have tried every known game and they know every trick in the book. Once they heard about a new casino that offers an unusual games.
Soon enough their passion led them to that casino, they stepped in and reached an empty table, immediately the man behind that table started to explain the game, pointing at a bag, he said: "At this bag I have a collection of weird dices each of which has three sides only with a different number in the range [1, 9] on each side, along with the bag, we have a roulette of 15 sectors numbered 1, 2, ... , 15. The game will start by choosing three random dices from the bag, then spinning the roulette to decide a number n at random (0 < n < 16). Each player should pick one dice and roll it n times, the score will be kept for each player as the sum of faced up sides among the n rolls, the player with the maximum score wins the game".
Being a gentleman, Ahmad will let Salwa get the first choice of which dice to play with. Your task is to help Ahmad then to choose a reasonable dice from the two left ones.

Input Format:
The first line contains one integer 0 < t ≤ 5000 which is the number of test cases.
Each test case is a round described as follow: first line contains an integer 0 < n < 15 denotes the number of rolling times and a character 'A' or 'B' or 'C' denotes Salwa's choice at this particular round. The following three lines describes the three used dices 'A', 'B', and 'C' respectively, each line contains three integers denoting the numbers that can be found on each side of the associated dice.

Output Format:
For each test case you have to output one line containing one of the following statements:
Pick A, Pick B, Pick C, No Choice, and Pick Any
Where:
Pick A is outputted if dice A is most likely to win.
Pick B is outputted if dice B is most likely to win.
Pick C is outputted if dice C is most likely to win.
No Choice is outputted if Salwa's choice is better than Ahmad's both available choices.
Pick Any is outputted if both Ahmad's available choices are better than Salwa choice.

Sample Input:
2 2 A 1 5 9 2 6 7 3 4 8 3 C 7 1 2 3 5 6 8 4 9

Sample Output:
Pick C No Choice

 Added by: samiemad Added at: 2014-02-26 01:15:03 UTC Time Limit: 3 seconds Partial score: No Source: ACM Syrian Collegiate Programming Contest 2013