Problem:


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



Sample input:
8 6


Sample output:
Alice

Submission status: Accepted

Solution code:
A,B=map(int, input().split())
if A == 1:
  A = 14
if B == 1:
  B = 14
if A == B:
  print("Draw")
elif A < B:
  print("Bob")
else:
  print("Alice")

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
if A==1:
    A=14
if B==1:
    B=14
ans = 'Alice' if A>B else ('Bob' if A<B else 'Draw')
print(ans)

Submission status: Accepted

Solution code:
import sys, math
from functools import lru_cache
from itertools import accumulate
sys.setrecursionlimit(10**9)
MOD = 10**9+7

def input():
    return sys.stdin.readline()[:-1]

def mi():
    return map(int, input().split())

def ii():
    return int(input())

def i2(n):
    tmp = [list(mi()) for i in range(n)]
    return [list(i) for i in zip(*tmp)]

A, B = mi()

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
else:
    if A > B:
        print('Alice')
    else:
        print('Bob')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())

if A == 1:
  A += 13
if B == 1:
  B += 13
  
print("Alice" if A > B else "Bob" if A < B else "Draw")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a == 1 and b == 1:
  a = 14
  b = 14
elif b == 1:
  b = 14
elif a == 1:
  a = 14
  
if a>b:
  print("Alice")
elif b>a:
  print("Bob")
else:
  print("Draw")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A == 1 or (A > B and B != 1):
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == 1:
    a = 14

if b == 1:
    b = 14

if a > b:
    print('Alice')
elif a < b:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
trump=[2,3,4,5,6,7,8,9,10,11,12,13,1]
a,b=map(int,input().split(" "))
if a==b:print("Draw")
else:print(["Alice","Bob"][trump.index(b)>trump.index(a)])

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a == b:
    print('Draw')
elif a == 1:
    print('Alice')
elif b == 1:
    print('Bob')
elif a > b:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = i_map()

    if a == b:
        print('Draw')
    elif a == 1:
        print('Alice')
    elif b == 1:
        print('Bob')
    elif a > b:
        print('Alice')
    else:
        print('Bob')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
  print('Draw')
elif a == 1:
  print('Alice')
elif b == 1:
  print('Bob')
elif a > b:
  print('Alice')
elif b > a:
  print('Bob')

Submission status: Accepted

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 6)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")
al = "abcdefghijklmnopqrstuvwxyz"
AL = al.upper()

A, B = I()
if A == B:
    print("Draw")
elif A == 1:
    print("Alice")
elif B == 1:
    print("Bob")
else:
    if A > B:
        print("Alice")
    else:
        print("Bob")

Submission status: Accepted

Solution code:
# import math
# import statistics
#a=input()
#b,c=int(input()),int(input())
# c=[]
# for i in a:
#    c.append(i)
e1,e2 = map(int,input().split())
#K = input()
# f = list(map(int,input().split()))
#g = [input() for _ in range(a)]
a=[2,3,4,5,6,7,8,9,10,11,12,13,1]
if e1==e2:
	print('Draw')
elif a.index(e1)>a.index(e2):
	print('Alice')
else:
	print('Bob')

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
if A==1:
    A+=13
if B==1:
    B+=13

if(A>B):
    print("Alice")
elif A<B:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A == B:
  print("Draw")
elif A == 1:
  print("Alice")
elif B == 1:
  print("Bob")
elif A > B:
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
li=[2,3,4,5,6,7,8,9,10,11,12,13,1]
if li.index(a)<li.index(b):
    print("Bob")
elif li.index(a)>li.index(b):
    print("Alice")
else:
    print("Draw")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if int(a) == 1 and int(b) != 1:
    print("Alice")
elif int(a) != 1 and int(b) == 1:
    print("Bob")
elif int(a) > int(b):
    print("Alice")
elif int(a) < int(b):
    print("Bob")
elif int(a) == int(b):
    print("Draw")

Submission status: Accepted

Solution code:
l = list(range(2,14))+[1]
a,b = map(int,input().split())
a,b = l.index(a),l.index(b)
print("Draw" if a == b else "Alice" if a > b else "Bob")

Submission status: Accepted

Solution code:
a, b = input().split()


if int(a) == 1 and int(b) != 1:
    print("Alice")
elif int(a) != 1 and int(b) == 1:
    print("Bob")
elif int(a) > int(b):
    print("Alice")
elif int(a) < int(b):
    print("Bob")
elif int(a) == int(b):
    print("Draw")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
st_l = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1]

if st_l.index(a) > st_l.index(b):
    print('Alice')
elif st_l.index(a) < st_l.index(b):
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
a=(a-2)%13
b=(b-2)%13
if a<b:print('Bob')
elif a>b:print('Alice')
else:print('Draw')

Submission status: Accepted

Solution code:
def main():
    a, b = map(int, input().split())
    power_list = [0, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

    if power_list[a] > power_list[b]:
        print("Alice")
    elif power_list[a] < power_list[b]:
        print("Bob")
    else:
        print("Draw")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == 1:
  a =14
if b == 1:
  b =14

if a > b:
  print("Alice")
elif a < b:
  print("Bob")
else:
  print("Draw")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A == B:
    print("Draw")
else:
    if A == 1:
        print("Alice")
    elif B == 1:
        print("Bob")
    else:
        if A > B:
            print("Alice")
        else:
            print("Bob")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == b:
    print('Draw')
elif a > b and b != 1 or a == 1 :
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
#54
a,b=map(int,input().split())
if ((a==1 and b!=1) or (a>b and b!=1)):
    print('Alice')
elif ((b==1 and a!=1) or (b>a and a!=1)):
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
# 054_a
A, B = map(int, input().split())
if (1 <= A & A <= 13) & (1 <= B & B <= 13):
    if A == B:
        print('Draw')
    elif A == 1:
        print('Alice')
    elif B == 1:
        print('Bob')
    elif A > B:
        print('Alice')
    elif A < B:
        print('Bob')

Submission status: Accepted

Solution code:
A, B = map(lambda x:int(x) if int(x)> 1 else 14, input().split())
if A > B:
    print('Alice')
if A == B:
    print('Draw')
if A < B:
    print('Bob')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
  print("Draw")
elif a == 1:
  print("Alice")
elif b == 1:
  print("Bob")
elif a > b:
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A < B:
    if A == 1:
        ans = 'Alice'
    else:
        ans = 'Bob'
elif B < A:
    if B == 1:
        ans = 'Bob'
    else:
        ans = 'Alice'
else:
    ans = 'Draw'

print(ans)

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a == b:
  print("Draw")
elif a == 1 or (a > b and b != 1):
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == b:
    print('Draw')
elif a == 1:
    print('Alice')
elif b == 1:
    print('Bob')
elif a > b:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
def solve():
    A, B = map(int, input().split())
    if A == B:
        print('Draw')
    elif A == 1 or (B != 1 and B < A):
        print('Alice')
    else:
        print('Bob')

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
a, b = map(int,input().split())
if a == 1:
    a += 13
if b == 1:
    b += 13
if a > b:
    print('Alice')
elif a < b:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
l=[2,3,4,5,6,7,8,9,10,11,12,13,1]

print("Alice" if l.index(a)>l.index(b) else "Bob" if l.index(a)<l.index(b) else "Draw")

Submission status: Accepted

Solution code:
# A - One Card Poker
# https://atcoder.jp/contests/abc054/tasks/abc054_a

A, B = map(int, input().split())

result = 'Alice'

if A == B:
    result = 'Draw'
elif A < B:
    if A == 1:
        result = 'Alice'
    else:
        result = 'Bob'
else:
    if B == 1:
        result = 'Bob'

print(result)

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
A, B = (A+11)%13, (B+11)%13
if A < B:
  print("Bob")
elif A > B:
  print("Alice")
else:
  print("Draw")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==1:
  a=14
if b==1:
  b=14
if a==b:
  print("Draw")
elif a>b:
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
# 1枚ポーカー 1が強く2が弱い勝敗判定

A, B = map(int, input().split())

if A == 1:
    A = 14
if B == 1:
    B = 14

if A == B:
    print('Draw')
elif A > B:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
a,b = [int(a) for a in input().split()]

if a == b:
  print("Draw")
elif a == 1:
  print("Alice")
elif b == 1:
  print("Bob")
elif  a > b:
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a==1:
  a=14
  
if b==1:
  b=14
  
if a>b:
  print('Alice')
  
elif a<b:
  print('Bob')
  
else:
  print('Draw')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A > B != 1 or (A < B and A == 1):
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
n=[2,3,4,5,6,7,8,9,10,11,12,13,1]
a,b=map(int,input().split());a,b=n.index(a),n.index(b);print(['DBroabw'[a<b::2],'Alice'][a>b])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==b:
  print("Draw")
elif a==1:
  print("Alice")
elif b==1:
  print("Bob")
elif a>b:
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == 1:
    a = 14

if b == 1:
    b = 14


if a > b:
    print("Alice")
elif a < b:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == 1:
    a = 14
if b == 1:
    b = 14
    
if a > b:
    print('Alice')
elif a == b:
    print('Draw')
else:
    print('Bob')

Submission status: Accepted

Solution code:
# 入力
A, B = map(int,input().split())

# 処理
if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())

if A == B:
    print('Draw')

elif A == 1:
    print('Alice')

elif B == 1:
    print('Bob')

elif A > B:
    print('Alice')

elif B > A:
    print('Bob')

Submission status: Accepted

Solution code:
# 数字を取得
A,B = map(int,input().split())

# 比較条件に沿ったメッセージを出力
if A == B:
  print("Draw")
else:
  if B != 1 and A > B\
  or A == 1:
    print("Alice")
  else:
    print("Bob")

Submission status: Accepted

Solution code:
# 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人の代わりに、勝敗を判定するプログラムを作ってください。

input_alice, input_bob = map(int,input().split())

result = 'ret'  # 結果格納用

if input_alice > input_bob: # Aの方がBより大きい
    if input_bob == 1:
        result = 'Bob'  # Bobがエースなので勝ち～
    else:
        result = 'Alice'
elif input_alice < input_bob:   # Bの方がAより大きい
    if input_alice == 1:
        result = 'Alice'    # Aliceがエースなので勝ち～
    else:
        result = 'Bob'
else:
    result = 'Draw'         # どっちも同じ手札なので引き分け～

print(result)   # 結果出力～

Submission status: Accepted

Solution code:
# 入力
A, B = map(int, input().split())

# 同じなら引き分け、1が出たら勝ち、大きい方が勝ち
if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
elif A < B:
    print('Bob')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A == 1:
  A += 100
if B == 1:
  B += 100
if A > B:
  print("Alice")
elif A < B:
  print("Bob")
else:
  print("Draw")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
elif A < B:
    print('Bob')

Submission status: Accepted

Solution code:
# # aアリス　　　ｂボブ
# a, b = map(int, input().split())
# if a == b:
#     print("Draw")
# elif a == 1:
#     print("Alice")
# elif b == 1:
#     print("Bob")
# elif a < b:
#     print("Bob")
# elif b < a:
#     print("Alice")

x, y = map(int, input().split())

L = list(range(2, 14)) + [1]
a = L.index(x)
b = L.index(y)

if a>b:
    print("Alice")
elif b>a:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

Solution code:
# aアリス　　　ｂボブ
a, b = map(int, input().split())
if a == b:
    print("Draw")
elif a == 1:
    print("Alice")
elif b == 1:
    print("Bob")
elif a < b:
    print("Bob")
elif b < a:
    print("Alice")

Submission status: Accepted

Solution code:
#
# abc054 a
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """8 6"""
        output = """Alice"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 1"""
        output = """Draw"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """13 1"""
        output = """Bob"""
        self.assertIO(input, output)


def resolve():
    A, B = map(int, input().split())
    if A == 1:
        A = 14
    if B == 1:
        B = 14

    if A > B:
        print("Alice")
    elif A < B:
        print("Bob")
    else:
        print("Draw")


if __name__ == "__main__":
    # unittest.main()
    resolve()

Submission status: Accepted

Solution code:
x, y = map(int,input().split())
L = list(range(2,14)) + [1]
a = L.index(x)
b = L.index(y)
if a > b:
    print("Alice")
elif a == b:
    print("Draw")
else:
    print("Bob")

Submission status: Accepted

Solution code:
A, B = map(int,input().split())

if A == 1 and 13 >= B >= 2:
    print("Alice")
elif B == 1 and 13 >= A >= 2:
    print("Bob")
elif A > B:
    print("Alice")
elif B > A:
    print("Bob")
elif A == B:
    print("Draw")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else :
    print('Bob')

Submission status: Accepted

Solution code:
# A - One Card Poker

# 一枚ポーカーの勝敗を判定し出力する


card_A, card_B = map(int, input().split())

if card_A == 1:
    card_A = 14

if card_B == 1:
    card_B = 14

if card_A > card_B:
    print('Alice')
elif card_A < card_B:
    print('Bob')
elif card_A == card_B:
    print('Draw')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print("Draw")
elif A == 1:
    print("Alice")
elif B == 1:
    print("Bob")
elif A > B:
    print("Alice")
else:
    print("Bob")

Submission status: Accepted

Solution code:
# 入力
A, B = map(int, input().split())

# 出力

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
elif B > A:
    print('Bob')

Submission status: Accepted

Solution code:
# A - One Card Poker
def main():
    a, b = map(int, input().split())

    if a == b:
        print('Draw')
    elif a == 1 and b != 1:
        print('Alice')
    elif a != 1 and b == 1:
        print('Bob')
    elif a > b:
        print('Alice')
    else:
        print('Bob')
  
        
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S =input()
S_list = list(map(int,S.split()))
S_list = [i - 1 for i in S_list]

if  S_list[0] == S_list[1] :
    result = "Draw"
elif (S_list[0] - S_list[1]) * S_list[1] >0 or S_list[0] == 0:
    result = "Alice"
else:
    result = "Bob"
print(result)

Submission status: Accepted

Solution code:
#   AtCoder abc054 a
#   ストレッチ課題

#   入力
alice, bob = map(int, input().split())

#   判定
if alice == bob:
    print("Draw")
elif (alice == 1) or ((bob != 1) and (alice > bob)):
    print("Alice")
else:
    print("Bob")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a == b:
    print("Draw")
elif a == 1:
    print("Alice")
elif b == 1:
    print("Bob")
elif a > b:
    print("Alice")
elif a < b:
    print("Bob")

Submission status: Accepted

Solution code:
# 054a

A, B = map(int, input().split())    # カードの数字を入力

if A == B:
    print("Draw")
elif A == 1:
    print("Alice")
elif B == 1:
    print("Bob")
elif A < B:
    print("Bob")
else:
    print("Alice")

Submission status: Accepted

Solution code:
a, b = map(int,input().split())
if a == 1:
    if a < b:
        print('Alice')
    else:
        print('Draw')
elif b == 1:
    if a > b:
        print('Bob')
    else:
        print('Draw')
else:
    if a < b:
        print('Bob')
    elif a > b:
        print('Alice')
    else:
        print('Draw')

Submission status: Accepted

Solution code:
aris_card , bob_card = map(int, input(). split())

if aris_card == 1:
    aris_card += 13
if bob_card == 1:
    bob_card += 13

if aris_card == bob_card:
    print( "Draw" )
elif aris_card > bob_card:
    print( "Alice" )
elif aris_card < bob_card:
    print( "Bob" )

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

ans = ["Alice", "Bob", "Draw"]

if A == 1:
  A = 14
if B == 1:
  B = 14
  
if A > B:
  print(ans[0])
elif A == B:
  print(ans[2])
else:
  print(ans[1])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==1 and b!= 1:
    a += 13
    if a>b:
     print('Alice')
    elif b>a:
     print('Bob')
    else:
     print('Draw')
elif b==1 and a!= 1:
    b += 13
    if a>b:
     print('Alice')
    elif b>a:
     print('Bob')
    else:
     print('Draw')
elif a==1 and b== 1:
     print('Draw')
else:
    if a>b:
     print('Alice')
    elif b>a:
     print('Bob')
    else:
     print('Draw')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == b:
    print('Draw')
elif a == 1 or a > b != 1:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == 1 and B == 1:
    print('Draw')
elif A == 1 and B != 1:
    print('Alice')
elif B == 1 and A != 1:
    print('Bob')
elif A > B:
    print('Alice')
elif B > A:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
a = (a - 2) % 13
b = (b - 2) % 13
print('Alice' if a > b else 'Bob' if b > a else 'Draw')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
    print('Draw')
elif a == 1 or (b != 1 and a > b):
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
# AliceのスコアAとBobのスコアBを整数で入力
A,B = map(int,input().split())
# AとBが同じならDrawを出力
if A == B:
    print("Draw")
# Aが1か、Bが1でなく且つAがBより大きいならAliceを出力
elif  A == 1 or B!= 1 and A > B:
    print("Alice")
# Bの方が強ければBobを出力
else:
    print("Bob")

Submission status: Accepted

Solution code:
# AliceのスコアAとBobのスコアBを整数で入力
A,B = map(int,input().split())
# AとBが同じならDrawを出力
if A == B:
    print("Draw")
# Aが1がBより大きいならAliceを出力
elif A == 1 or A > B and B!= 1 :
    print("Alice")
# Bの方が強ければBobを出力
else:
    print("Bob")

Submission status: Accepted

Solution code:
# 入力
a, b = map(int, input().split())

# 処理&出力
if a == b:
    print('Draw')
elif a == 1:
    print('Alice')
elif b == 1:
    print('Bob')
elif a > b:
    print('Alice')
elif b > a:
    print('Bob')

Submission status: Accepted

Solution code:
a,b=input().split()
a=int(a)
b=int(b)
if a==b:
  print("Draw")
else:
  if a==1:
    print("Alice")
  else:
    if b==1:
      print("Bob")
    else:
      if a-b>0:
        print("Alice")
      else:
        print("Bob")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A == 1 or B < A and B != 1:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
# 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人の代わりに、勝敗を判定するプログラムを作ってください。

input_alice, input_bob = map(int,input().split())

result = 'ret'

if input_alice > input_bob:
    if input_bob == 1:      # Bobがエースなので勝ち～
        result = 'Bob'
    else:
        result = 'Alice'
elif input_alice < input_bob:
    if input_alice == 1:     # Aliceがエースなので勝ち～
        result = 'Alice'
    else:
        result = 'Bob'
else:
    result = 'Draw'         # どっちも同じ手札なので引き分け～

print(result)

Submission status: Accepted

Solution code:
# A - One Card Poker

# Alice と Bob は 2人で1枚のポーカーをやっている
# カードの強さは以下の通り
# 弱 2 < 3 < 4 < ・・・・・ < 12 < 13 < 1 強

# 1.各プレイヤーは、トランプからカードを1枚選んで、自分の手札とします。
# 2.両プレイヤーは、手札を見せ合います。強いカードを持っているプレイヤーが勝ちです。
# 　なお、両プレイヤーの持っているカードの強さが同じ場合は引き分けです。

# Alice が持っているカードを A
# Bob   が持っているカードを B

# 勝敗を判定するプログラムを作る

# A B を標準入力から得る
A, B = map(int, input().split())
# print(A, B)

# Alice が 勝つなら Alice
# Bob   が 勝つなら Bob
# 引き分けなら Draw

if A == B:
    answer = "Draw"
elif A == 1:
    answer = "Alice"
elif B == 1:
    answer = "Bob"
elif A > B:
    answer = "Alice"
else:
    answer = "Bob"

# 結果を出力
print(answer)

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif B != 1 and A > B or A == 1:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == 1:
    A += 13

if B == 1:
    B += 13

if A > B:
    print('Alice')
elif A < B:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
a, b = (int(x) for x in input().split())
if a == 1:
    a = 14
if b == 1:
    b = 14
if a > b:
    print('Alice')
elif a < b:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
A,B = map(int, input().split())
A = 15 if A == 1 else A
B = 15 if B == 1 else B

if A == B:
    print('Draw')
elif A < B:
    print('Bob')
elif A > B:
    print('Alice')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif B!=1 and A>B or A==1:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
A, B = map(int, input(). split())

if A == 1 and B != 1:
    print('Alice')
elif A != 1 and  B == 1:
    print('Bob')
elif A > B:
    print('Alice')
elif A < B:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a, b = map(int, input().split())
    if a == 1: a += 13
    if b == 1: b += 13
    if a == b:
        print("Draw")
    elif a > b:
        print("Alice")
    else:
        print("Bob")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==1 and b==13:
  print("Alice")
elif a==13 and b==1:
  print("Bob")
elif a<b:
  print("Bob")
elif a>b:
  print("Alice")
else:
  print("Draw")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A == B:
    print("Draw")
elif A != 1 and B != 1:
    if A < B:
        print("Bob")
    else:
        print("Alice")
elif A == 1:
    print("Alice")
elif B == 1:
    print("Bob")

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
if A==B:
    ans="Draw"
elif A==1 or B==1:
    ans="Alice" if A==1 else "Bob"
else:
    if A<B:
        ans="Bob"
    else:
        ans="Alice"
print(ans)

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split(' ')))
if a==1:
  a += 13
if b==1:
  b += 13
  
if a==b:
  print('Draw')
elif a>b:
  print('Alice')
elif a<b:
  print('Bob')

Submission status: Accepted

Solution code:
# 最弱 2 < ~ < 13 < 1 最強

alice_card, bob_card = map(int, input().split())

# 最強カード「1」をわかりやすく、13足して14にしとく。

if alice_card == 1:
    alice_card += 13

if bob_card == 1:
    bob_card += 13


# 勝負の処理
if alice_card == bob_card:
    print('Draw')
elif alice_card > bob_card:
    print('Alice')
elif alice_card < bob_card:
    print('Bob')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())

if A == B:
    print("Draw")
elif A == 1:
    print("Alice")
elif B == 1:
    print("Bob")
elif A < B:
    print("Bob")
else:
    print("Alice")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
  print('Draw')
elif b == 1:
  print('Bob')
elif a == 1:
  print('Alice')
elif a < b:
  print('Bob')
else:
  print('Alice')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
    print('Draw')
elif a == 1:
    print('Alice')
elif b == 1:
    print('Bob')
elif a < b:
    print('Bob')
else:
    print('Alice')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
A, B = map(int, input().split())

if A == B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
elif A > B:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == 1 and b == 13:
  print("Alice")
elif a == 13 and b == 1:
  print("Bob")
else:
  if a == b:
    print("Draw")
  elif a > b:
    print("Alice")
  else:
    print("Bob")

Submission status: Accepted

Solution code:
A,B = (int(T) for T in input().split())
if A==1 or B==1:
    print(['Alice','Draw','Bob'][(A>B)+(A>=B)])
else:
    print(['Alice','Draw','Bob'][(A<B)+(A<=B)])

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
if A==B:
  print("Draw")
  exit()
if A==1:
  print("Alice")
  exit()
if B==1:
  print("Bob")
  exit()
if A>B:
  print("Alice")
  exit()
else:
  print("Bob")
  exit()

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==1:
    a=14
if b==1:
    b=14
print('Alice'if a>b else'Bob'if a<b else'Draw')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == 1:
    if b != 1:
        print("Alice")
        exit()
    else:
        print("Draw")
        exit()
elif b == 1:
    if a != 1:
        print("Bob")
        exit()
    else:
        print("Draw")
        exit()
 
if  a < b:
    print("Bob")
elif a > b:
    print("Alice")
else:
    print("Draw")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == 1:
  a = 14
if b == 1:
  b = 14
if a > b:
  print("Alice")
elif a < b:
  print("Bob")
else:
  print("Draw")