All problems

Sizing Boxes by Sample Size

mediumPythonMatplotlibBox Plot

Thornhill Labs draws two batches side by side, and a box plot hides the one thing a reader most needs here: how much testing stands behind each box. Four readings and four hundred readings produce boxes that look equally authoritative. House style therefore makes each box as wide as the evidence behind it, so a narrow box reads as a warning. The report also states in words which batch was the better tested.

Task: Print A or B, whichever batch holds more readings. The two batches never hold the same number of readings.

Input

Four lines. The first holds an integer n and the second holds n readings for batch A, separated by single spaces. The third and fourth do the same for batch B. Both counts are at least 1 and they are never equal.

Output

One line holding a single capital letter, A or B.

Example:

Input:
5
1 2 3 4 5
2
10 20

Output:
A

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…