QOJ.ac

QOJ

時間限制: 1 s 記憶體限制: 512 MB 總分: 100

#4330. Dots

统计

The summer camp for young computer scientists has been held on the island of Krk for years. The young computer scientists usually spend their little free time swimming at Dražica, a popular sandy beach, accompanied by adult, responsible persons.

Alenka and Bara are two (ir)responsible persons. Instead of watching the children, they decided to pass the time by playing in the sand. At one point, Alenka draws $N$ points, making sure that no three points are collinear, and says:

“Let’s play the dots game. We will take turns making moves, and I will go first. In each turn, we will draw a line segment connecting two points, such that the segment does not intersect any of the previously drawn segments. The newly drawn segment may touch one of the previously drawn segments at an endpoint. The person who makes the last move is the winner!”

Given the arrangement of points, determine who will win the dots game, assuming both players play optimally.

Input

The first line contains a natural number $N$ from the problem description.

In the $i$-th of the following $N$ lines, there are two natural numbers $x_i, y_i$ ($1 \le x_i, y_i \le 10^6$) representing the coordinates of the $i$-th point.

No three points will be collinear, and every two points will be distinct.

Output

In the only line, print Alenka if Alenka will win the game, or Bara if Bara will win the game.

Subtasks

Subtask Points Constraints
1 13 $1 \le N \le 7$
2 17 $1 \le N \le 300$
3 21 $1 \le N \le 1\,000$
4 49 $1 \le N \le 100\,000$

Examples

Input 1

4
0 0
0 10
10 0
10 10

Output 1

Alenka

Input 2

5
2 1
1 3
6 4
3 5
5 2

Output 2

Alenka

Input 3

4
4 2
2 4
2 2
1 1

Output 3

Bara

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.