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:
from functools import reduce
import math

def main():
    # N! を求める
    # f = math.factorial(N)
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    # 1e10

    # 初期値用:十分小さい数(-100億)
    # -1e10
    
    # 1文字のみを読み込み
    # 入力:2
    # a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    a, b = (int(_) for _ in input().split())
    if a == 1:
        a = 14
    if b==1:
        b = 14
        
    if a>b:
        ans = 'Alice'
    elif a == b:
        ans = 'Draw'
    else:
        ans = 'Bob'
        
    print(ans)
    
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())
cards = [num for num in range(2, 14)]
cards.append(1)

for i in reversed(cards):
    if i == A and i == B:
        print("Draw")
    elif i == A and i != B:
        print("Alice")
        break
    elif i == B and i != A:
        print("Bob")
        break

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 b > a else "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 == 1: a = 20
if b == 1: b = 20

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:
	print(['Alice','Bob'][b==1])
else:
	print(['Bob','Alice'][a==1])

Submission status: Accepted

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

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

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")
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:
# -*- coding utf-8 -*-

a,b = map(int,input().split())

if a==1 and b==1:
    print("Draw")
elif a==1:
    print("Alice")
elif b==1:
    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 == 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 = map(int, input().split())
if A == 1:
    A += 13
if B == 1:
    B += 13
print('Alice' if A > B else 'Draw' if A == B else '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')
else:
    print('Bob' if a<b else 'Alice')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def one_card_poker(A: int, B: int) -> str:
    if A == B:
        return 'Draw'
    if A == 1:
        return 'Alice'
    if B == 1:
        return 'Bob'
    if A > B:
        return 'Alice'
    return 'Bob'


if __name__ == "__main__":
    A, B = map(int, input().split())
    ans = one_card_poker(A, B)
    print(ans)

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:
import sys
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def POW(x, y):
    if y == 0:
        return 1
    elif y == 1:
        return x
    elif y % 2 == 0:
        return POW(x, y // 2) ** 2 % MOD
    else:
        return POW(x, y // 2) ** 2 * x % MOD
def mod_factorial(x, y): return x * POW(y, MOD - 2) % MOD
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()
from functools import reduce

def main():
    A, B = LI()
    if A == 1:
        A = 14
    if B == 1:
        B = 14
    if A > B:
        ans = 'Alice'
    elif A == B:
        ans = 'Draw'
    else:
        ans = 'Bob'
    return ans

print(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')
else:
    print('Bob')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if (a == 1) & (b != 1):
    print("Alice")
elif (b == 1) & (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())
if A==1 or B==1:
  if A==B:
    print('Draw')
  elif A==1:
    print('Alice')
  else:
    print('Bob')
elif A>B:
  print('Alice')
elif A<B:
  print('Bob')
else:
  print('Draw')

Submission status: Accepted

Solution code:
def I_N_S():
	return map(int, input().split())

A, B = I_N_S()
print("Draw" if A == B else "Alice" if (A == 1 or (B != 1 and B < A)) else "Bob")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007

#A
def f(n):
    if n == 1:
        return 14
    return n
a,b = LI()
if f(a) < f(b):
    print("Bob")
elif f(a) == f(b):
    print("Draw")
else:
    print("Alice")
#B

#C
"""
n,m = LI()
v = LIR(m)
p2 = [1]
for i in range(n):
    p2.append(p2[-1]*2)
dp = [[0 for i in range(p2[n])] for j in range(n)]
dp[0][1] = 1
for i in range(1,p2[n]):
    for k in range(n):
        for a,b in v:
            a -= 1
            b -= 1
            if k==a or k == b:
                c = p2[a]
                d = p2[b]
                if i&c and not i&d:
                    dp[b][i|d] += dp[k][i]
                if (not i&c) and i&d:
                    dp[a][i|c] += dp[k][i]
ans = 0
for i in range(1,n):
    ans += dp[i][-1]
print(ans)
"""

#D
"""
n,p,q = LI()
v = [None for j in range(n)]
sa = 0
sb = 0
for i in range(n):
    a,b,c = LI()
    v[i] = [a,b,c]
    sa += a
    sb += b
dp = [[[float("inf") for i in range(sb+1)] for j in range(sa+1)] for k in range(n+1)]
dp[0][0][0] = 0
for i in range(n):
    for a in range(sa):
        for b in range(sb):
            ai,bi,ci = v[i]
            if a + ai <= sa and b + bi <= sb:
                dp[i+1][a+ai][b+bi] = min(dp[i+1][a+ai][b+bi],dp[i][a][b]+ci,dp[i][a+ai][b+bi])
            dp[i+1][a][b] = min(dp[i+1][a][b],dp[i][a][b])
li = [[p,q]]
while li[-1][0] <= sa and li[-1][1] <= sb:
    li.append([li[-1][0]+p,li[-1][1]+q])
li.pop(-1)
ans = float("inf")
for a,b in li:
    ans = min(ans,dp[n][a][b])
if ans == float("inf"):
    print(-1)
else:
    print(ans)
"""
#E

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

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:
n,b=map(int,input().split(' '))
if n==1:
    n+=13
if b==1:
    b+=13
if n>b:
    print('Alice')
elif n==b:
    print('Draw')
elif n<b:
    print('Bob')

Submission status: Accepted

Solution code:
a,b=(int(i) for i  in input().split())
#print(a,b)

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 = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=((11 + int(s)) % 13 for s in input().split())
print('Alice' if a > b else 'Bob' if a < b else 'Draw')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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,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] = list(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('Draw')
elif a > b:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
data = [int(i) + 13*(i == '1') for i in input().split()]
print('Bob' if data[0] < data[1] else 'Alice' if data[0] != data[1] else 'Draw' )

Submission status: Accepted

Solution code:
A,B=[int(i)+13*(i=="1") for i in input().split()]
print(["Draw","Alice","Bob"][(B>A)+(B!=A)])

Submission status: Accepted

Solution code:
a,b=map(int,input().split());n=13;x,y=(n-~-a)%n,(n-~-b)%n;print('Draw' if x==y else ['Alice','Bob'][x>y])

Submission status: Accepted

Solution code:
li=[13,1,2,3,4,5,6,7,8,9,10,11,12]
A,B = [int(x)-1 for x in input().split()]
if(li[A]>li[B]):
  print('Alice')
elif(li[A]==li[B]):
  print('Draw')
else:
  print('Bob')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = list(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:
# -*- coding: utf-8 -*-
A , B = map(int, input().split())
if A == 1 and B == 1:
    print('Draw')
elif A == 1:
    print('Alice')
elif B == 1:
    print('Bob')
else:
    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 += 13
if b == 1:
	b += 13

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

Submission status: Accepted

Solution code:
#54
a, b = map(int, input().split())
if(a==b):
    print("Draw")
else:
    a1 = (a+12)%14
    b1 = (b+12)%14
    if(a1>b1):
        print("Alice")
    else:
        print("Bob")

Submission status: Accepted

Solution code:
A, B = [int(_) for _ in input().split()]
cards = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1]
print("Alice" if cards.index(A) > cards.index(B) else "Bob" if cards.index(A) < cards.index(B) else "Draw")

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(['ADlriacwe'[a==b::2],'Bob'][(a-2)%13<(b-2)%13])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
alice,bob = map(int,input().split())
if(bob == 1 or alice == 1):
    if(bob == 1 and alice == 1):
        print("Draw")
    elif(bob == 1):
        print("Bob")
    else:
        print("Alice")
else:
    if(bob < alice):
        print("Alice")
    elif(alice < bob):
        print("Bob")
    else:
        print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
a, b = map(int, input().split())
if a == b:
    print('Draw')
elif a > b:
    if b != 1:
        print('Alice')
    else:
        print('Bob')
else:
    if a != 1:
        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 == 1:
    a = 14
if b == 1:
    b = 14
ans = 'Alice'

if a < b:
    ans = 'Bob'
elif a == b:
    ans = 'Draw'

print(ans)

Submission status: Accepted

Solution code:
def func():
    A, B = map(int, input().split())
    result = 'Draw' if A == B else 'Alice' if (A+13)%15>(B+13)%15 else 'Bob'
    return result


print(func())

Submission status: Accepted

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

print('Draw' if A == B else 'Alice' if (A+13)%15>(B+13)%15 else 'Bob')

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:
def main() -> None:
    A, B = map(int, input().split())
    A = A + 13 if A == 1 else A
    B = B + 13 if B == 1 else B
    if A > B:
        print("Alice")
    elif A < B:
        print("Bob")
    else:
        print("Draw")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
    print("Draw")
elif (a > b or a == 1)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:
A,B=map(int,input().split())
if (A>B and B !=1)or (A!=B and A==1):
  print("Alice")
elif B>A and A!=1 or (A!=B and B==1):
  print("Bob")
elif A==B:
  print("Draw")

Submission status: Accepted

Solution code:
A, B = [e + 13 if e == 1 else e for e in map(int, input().split())]
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 b!=1:
  print("Alice")
elif a!=1 and b==1:
  print("Bob")
elif a==b:
  print("Draw")
elif a>b:
  print("Alice")
elif a<b:
  print("Bob")

Submission status: Accepted

Solution code:
a,b=(int(i) for i in input().split())
#print(a,b)
if a < b:
  if 1 < a:
    print('Bob')
  else:
    print('Alice')
if b < a:
  if 1 < b:
    print('Alice')
  else:
    print('Bob')

if a ==b:
    print('Draw')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
R = [0,13,1,2,3,4,5,6,7,8,9,10,11,12]
if R[A]>R[B]:
  print("Alice")
elif R[A]<R[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 == 1:
    print('Alice')
else:
    print('Bob')

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 == 1:a = 14
if b == 1:b = 14
print("Draw" if a == b else "Alice" if a > b else "Bob")

Submission status: Accepted

Solution code:
#09:48
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')
elif a == b:
    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('Bob')
if A>B:print('Alice')
if A==B:print('Draw')

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
for i in range(2):
    if x[i]==1:
        x[i]=14
if x[0] < x[1]:
    print('Bob')
elif x[0] > x[1]:
    print('Alice')
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')
else:
    print('Alice' if A > B else 'Bob')

Submission status: Accepted

Solution code:
A, B = list(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 == 1 or a > b) and b != 1:
  print("Alice")
else:
  print("Bob")

Submission status: Accepted

Solution code:
a,b=[int(i) for i in input().split()]
if a==b:
    print("Draw")
elif a==1:
    print("Alice")
elif b==1:
    print("Bob")
else:
    print("Alice" if a>b else "Bob")

Submission status: Accepted

Solution code:
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().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')
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
if a > b:
    print('Alice')
elif a == b:
    print('Draw')
else:
    print('Bob')

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print("Draw" if A==B else "Alice" if ((A+13)%15>(B+13)%15) else "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:
a,b=map(int,input().split());print(['ADlriacwe'[a==b::2],'Bob'][(a-2)%13<(b-2)%13])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
c=[13,1,2,3,4,5,6,7,8,9,10,11,12]
if c[a-1] > c[b-1]:print("Alice")
elif c[a-1]==c[b-1]:print("Draw")
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('Draw')
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:
  print("Alice")
elif b ==1:
  print("Bob")
elif 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 += 13
if b == 1:
  b += 13
if a > b:
  print('Alice')
elif a == b:
  print('Draw')
else:
  print('Bob')

Submission status: Accepted

Solution code:
# coding: utf-8
A, B = map(int, input().split())
if A == B:
    print('Draw')
elif A == 1 or B == 1:
    print(['Alice', 'Bob'][A > B])
else:
    print(['Alice', 'Bob'][A < B])

Submission status: Accepted

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

Submission status: Accepted

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

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 a<b else "Draw")

Submission status: Accepted

Solution code:
# ABC 054 A - One Card Poker

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,b = map(int,input().split())
if a == 1:
	a = 14
if b == 1:
	b=14
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 == 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 = map(int, input().split())
if A == B:
    print('Draw')
elif (A > B and B != 1) or (A < B and A == 1) :
    print('Alice')    
else:
    print('Bob')

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
a = (x + 13) % 15
b = (y + 13) % 15
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):
  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')
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 = [ int(x) for x in input().split() ]

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

print(ans)
print()

Submission status: Accepted

Solution code:
s = [int(i) for i in input().split()]
for i in range(2):
  if s[i] == 1:
    s[i] += 13
if s[0] > s[1]:
  print("Alice")
elif s[0] < s[1]:
  print("Bob")
else:
  print("Draw")

Submission status: Accepted

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

Submission status: Accepted

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

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]
A = l.index(a)
B = l.index(b)
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 a != b :
    print("Alice")
elif b == 1 and b != a:
    print("Bob")
elif (a != 1 and b != 1) and a > b:
    print("Alice")
elif (a != 1 and b != 1) and a < b:
    print("Bob")
elif a == b:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def fun():
     print('ac')
     print('AC')
     print('ACAC')
     print('ac')
A,B=map(int,input().split())
if A==1:
     A=15
if B==1:
     B=15
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 = [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('Draw')
else:
    print('Bob')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s,t=input().split()
A=int(s)
B=int(t)
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:
nums = list(map(int, input().split()))
Alice = nums[0]
Bob = nums[1]

if Alice == Bob:
    print("Draw")
    
else:
    if Alice == 1:
        print("Alice")
    elif Bob == 1:
        print("Bob")
    else:
        if Alice > Bob:
            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 b>a:print("Bob")
else:print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print("Draw" if a==b else ("Bob" if (a+13)%15<(b+13)%15 else "Alice"))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
a,b=(a+13)%15,(b+13)%15
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):
  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())
print("Draw" if A == B else("Bob" if (A+13)%15 < (B+13)%15 else "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:
    ans = "Alice"
elif a < b:
    ans = "Bob"
else:
    ans = "Draw"
print(ans)

Submission status: Accepted

Solution code:
card = list(map(int, input().split()))

if card[0] > card[1]:
    if card[1] == 1:
        print('Bob')
    else:
        print('Alice')
elif card[0] < card[1]:
    if card[0] == 1:
        print('Alice')
    else:
        print('Bob')
else:
    print('Draw')