Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
AliceとBobは、2人で1枚ポーカーを行います。
1枚ポーカーは、トランプを用いて行う2人ゲームです。
今回使用するトランプでは、各カードに 1
から 13
までの数が書かれています。
カードの強さは、カードに書かれている数で決まり,強さの基準は以下の通りです。
弱 2
< 3
< 4
< 5
< 6
< 7
< 8
< 9
< 10
< 11
< 12
< 13
< 1
強
1枚ポーカーは以下の手順で行います。
- 各プレイヤーは、トランプからカードを1枚選んで、自分の手札とします。
- 両プレイヤーは、手札を見せ合います。強いカードを持っているプレイヤーが勝ちです。
なお、両プレイヤーの持っているカードの強さが同じ場合は引き分けです。
2人の対戦を眺めていたあなたは、AliceとBobの手札を知ることができます。
Aliceが持っているカードに書かれている数は A 、Bobが持っているカードカードに書かれている数は B です。
2人の代わりに、勝敗を判定するプログラムを作ってください。
制約
- 1≦A≦13
- 1≦B≦13
- A,B は整数である。
入力
入力は以下の形式で標準入力から与えられる。
A B
出力
Aliceが勝つならAlice
を、Bobが勝つならBob
を、引き分けならDraw
を出力せよ。
入力例 1
8 6
出力例 1
Alice
Aliceが持っているカードに書かれている数は 8
、Bobが持っているカードに書かれている数は 6
です。
したがって、強いカードを持っているのはAliceなので、Alice
を出力します。
入力例 2
1 1
出力例 2
Draw
2人とも同じ数が書かれているカードを持っているので、引き分けです。
入力例 3
13 1
出力例 3
Bob
Score : 100 points
Problem Statement
Alice and Bob are playing One Card Poker.
One Card Poker is a two-player game using playing cards.
Each card in this game shows an integer between 1
and 13
, inclusive.
The strength of a card is determined by the number written on it, as follows:
Weak 2
< 3
< 4
< 5
< 6
< 7
< 8
< 9
< 10
< 11
< 12
< 13
< 1
Strong
One Card Poker is played as follows:
- Each player picks one card from the deck. The chosen card becomes the player's hand.
- The players reveal their hands to each other. The player with the stronger card wins the game.
If their cards are equally strong, the game is drawn.
You are watching Alice and Bob playing the game, and can see their hands.
The number written on Alice's card is A, and the number written on Bob's card is B.
Write a program to determine the outcome of the game.
Constraints
- 1≦A≦13
- 1≦B≦13
- A and B are integers.
Input
The input is given from Standard Input in the following format:
A B
Output
Print Alice
if Alice will win. Print Bob
if Bob will win. Print Draw
if the game will be drawn.
Sample Input 1
8 6
Sample Output 1
Alice
8
is written on Alice's card, and 6
is written on Bob's card.
Alice has the stronger card, and thus the output should be Alice
.
Sample Input 2
1 1
Sample Output 2
Draw
Since their cards have the same number, the game will be drawn.
Sample Input 3
13 1
Sample Output 3
Bob