Coupon Chaos
View as PDFAlice challenges Bob to a coupon trading game.
There are types of coupons, and Bob's goal is to collect them all.
Before the game begins, Alice is provided with distinct sets of coupon types, each of size
.
For each set , Alice must add exactly one of
or
to the set of allowed trades.
Then, Bob performs each of the following actions exactly once:
- Pick two distinct allowed trades
and
, and add the trades
and
to the set of allowed trades.
- Pick a coupon type
and receive exactly one coupon of that type.
During the game, for each allowed trade , Bob can perform the following operations any number of times:
- Trade 1 coupon of type
for 2 coupons of type
.
- Trade 2 coupons of type
for 1 coupon of type
.
Bob wins if at some point in the game, he simultaneously holds at least one coupon of every type. Otherwise, Alice wins.
Assuming choices are made optimally, determine if Alice or Bob are guaranteed to win.
Input
The first line contains two integers and
, the number of coupon types and the number of sets provided to Alice respectively.
The following lines contain integers
, representing the set
.
Output
Output one line consisting of either Alice or Bob, representing who has the winning strategy.
Constraints
,
It is guaranteed that the sets are distinct.
Example 1
Input
1 0
Output
Bob
Example 2
Input
2 1
1 2
Output
Alice
Example 3
Input
5 4
2 1
5 4
2 3
3 1
Output
Bob
Comments