Destructive Game

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

There are NN stone piles, numbered by sequential integers from 11 to NN. The ii-th pile contains a_ia\_i stones. Additionally, each pile ii has an integer b_ib\_i associated with it.

Alice and Bob play the following game using those stone piles.

They are alternately performing the following operation: choose pile ii and a nonnegative integer kk such that b_ikb\_i^k is not greater than the current number of stones in pile ii, and remove b_ikb\_i^k stones from pile ii. If a player cannot do that on their turn, the opposite player wins.

Alice moves first. Determine who will win if both players are playing optimally.

입력

The first line of input contains one integer NN (1N1051 \le N \le 10^5), the number of piles. The ii-th of the following NN lines contains two integers a_ia\_i and b_ib\_i (1a_i,b_i1091 \le a\_i, b\_i \le 10^9): the initial number of stones in the ii-th pile and the integer associated with it, respectively.

출력

If Alice wins the game when both sides are playing optimally, print "Alice". Otherwise, print "Bob".