Točkice (Dot Game)
Time limit1sMemory limit1024 MB
Given N points with no three collinear, decide which player wins the game where both alternately draw non-crossing segments between the points.
Problem
A summer camp for young computer science students has been held on the island of Krk for many years. In their free time, the students mostly swim at Dražica, a popular sandy beach, and adult supervisors walk them there.
Alenka and Bara are two supervisors who are not very responsible. Instead of watching the children, they pass the time playing in the sand. At one point, Alenka draws points, making sure that no three of them are collinear, and says:
"Let's play the game Točkice. We take turns drawing lines, and I will go first. On each turn, a player draws a segment that connects two of the points, but the segment may not cross any segment drawn before. A new segment may touch an earlier segment at an endpoint. The player who makes the last move wins!"
For a given arrangement of points, determine who wins the game if both players play optimally.
Input
The first line contains the natural number from the problem statement.
Each of the next lines contains two natural numbers , (), the coordinates of the -th point.
No three points are collinear, and no two points are the same.
Output
Print one line containing Alenka if Alenka wins the game, or Bara if Bara wins. Assume both players play optimally.