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 and B != 1:
  if A > B:
    print("Alice")
  elif A == B:
    print("Draw")
  else:
    print("Bob")
    
else:
  if A > B:
    print("Bob")
  elif A == B:
    print("Draw")
  else:
    print("Alice")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map([2,3,4,5,6,7,8,9,10,11,12,13,1].index,map(int,input().split()));print("ADBlroiabcw e"[(a<b)+(a<=b)::3])

Submission status: Accepted

Solution code:
Alice, Bob = list(map(int,input().split()))
ans = ["Bob", "Alice", "Draw"]

if Bob == Alice:
  print(ans[2])
elif Alice == 1:
  print(ans[1])
elif Bob == 1:
  print(ans[0])
elif Bob > Alice:
  print(ans[0])
else:
  print(ans[1])

Submission status: Accepted

Solution code:
l=[2,3,4,5,6,7,8,9,10,11,12,13,1]
A=map(int,input().split());a,b=map(l.index,A)
print("ADBlroiabcw e"[(a<b)+(a<=b)::3])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def f(x):
  if x == 1:
    return 14
  else:
    return x
  
a, b = map(int, input().split())
print('Alice' if f(a) > f(b) else 'Bob' if f(a) < f(b) else '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 B<A:
      print("Alice")
    else:
      print("Bob")

Submission status: Accepted

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

def strength(x):
    if x == 1:
        return 14
    else:
        return x

a = strength(a)
b = strength(b)

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

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
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())

if (a - 2) % 13 > (b - 2) % 13:
    print('Alice')
elif (a - 2) % 13 < (b - 2) % 13:
    print('Bob')
elif a == b:
    print('Draw')

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

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())
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())
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:
    print("Bob")
elif B < A:
    print("Alice")
else:
    print("Draw")

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 == 1:
  if b == 1:
    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:
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: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:
    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())
def one_14(num):
  if num==1:
    return 14
  else:
    return num
a=one_14(a)
b=one_14(b)
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
print('Draw' if a==b  else 'Alice' if a>b else '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 = map(int, input().split())
A = (A + 11) % 13
B = (B + 11) % 13
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 + 13) % 15
B = (B + 13) % 15
print('Alice' if A > B else 'Bob' if B > A else 'Draw')

Submission status: Accepted

Solution code:
N = input().split()
A, B = int(N[0]), int(N[1])
if A == 1 or B == 1:
    if A == 1 and B != 1:
        print('Alice')
    elif A != 1 and B == 1:
        print('Bob')
    else:
        print('Draw')
else:
    if A > B:
        print('Alice')
    elif A < B:
        print('Bob')
    else:
        print('Draw')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import copy
import string
import  math
from _bisect import *
from collections import *
from operator import itemgetter
from math import factorial
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a, b = na()
li = [i for i in range(2, 14)]
li.append(1)
if li.index(a) < li.index(b):
    print("Bob")
elif li.index(a) == li.index(b):
    print('Draw')
else:
    print("Alice")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    A, B = map(int, input().split())
    if A == 1: A = 14
    if B == 1: B = 14
    if A > B: return "Alice"
    if A < B: return "Bob"
    return "Draw"

if __name__ == '__main__':
    print(main())

Submission status: Accepted

Solution code:
A,B = (int(i) for i in input().split())

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


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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
ls = [i for i in range(2, 14)] +[1]
ai = ls.index(a)
bi = ls.index(b)
print('Alice' if ai>bi else 'Bob' if bi>ai 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())
print('Draw' if a==b else 'Alice' if a==1 or (a>b and b!=1) else '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(lambda x:int(x)+13*(x=='1'),input().split())
print("Alice") if a>b else print("Bob") if a<b else print("Draw")

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())
print("Draw" if a == b else("Alice" if a == 1 or (b != 1 and b < a) else "Bob"))

Submission status: Accepted

Solution code:
class AtCoder:
    def main(self):
        A, B = map(int, input().split())
        A = range(13)[A - 2]
        B = range(13)[B - 2]
        print('Alice' if A > B else 'Bob' if B > A else 'Draw')


if __name__ == '__main__':
    AtCoder().main()

Submission status: Accepted

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

Submission status: Accepted

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

print("Alice" if (A+13)%15 > (B+13)%15 else "Draw" 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("Bob")
elif a==b:
  print("Draw")
else:
  print("Alice")

Submission status: Accepted

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

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('Alice')
elif A<B:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
A,B = [14 if a=='1' else int(a)  for a in input().split()]
print("Draw" if A==B else ("Alice" if A > B else "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("Bob")
elif B < A:
  print("Alice")
elif B == A:
  print("Draw")

Submission status: Accepted

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

if a==1:
  a=14
if b==1:
  b=14

if a>b:
  print("Alice")
if a<b:
  print("Bob")
if 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')
else:
  print('Alice' if a>b else 'Bob')

Submission status: Accepted

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

Submission status: Accepted

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

if li.index(a) == li.index(b):
    print("Draw")
elif li.index(a) > li.index(b):
    print("Alice")
else:
    print("Bob")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)
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 sys.stdin.readline().strip()
INF = 10 ** 18
MOD = 10 ** 9 + 7

from functools import lru_cache


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

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



main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
card=[str(i) for i in range(2,14)]+["1"]
a,b=input().split()
a=card.index(a)
b=card.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: a=14
if b == 1: b=14
print("Draw" if a==b else "Alice" if a>b else "Bob")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def test():
    card = {"1":14,"13":13,"12":12,"11":11,"10":10,"9":9,"8":8,"7":7,"6":6,"5":5,"4":4,"3":3,"2":2}
    a,b = input().split()
    if card[a] == card[b]:
        print("Draw")
    elif card[a] > card[b]:
        print("Alice")
    elif card[a] < card[b]:
        print("Bob") 


if __name__ == "__main__":
    test()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


def solve(A: int, B: int):
    if (A-2) % 14 < (B-2) % 14:
        print("Bob")
    elif (A-2) % 14 > (B-2) % 14:
        print("Alice")
    else:
        print("Draw")
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x='xmabcdefghijkl';a,b=map(int,input().split());print('Draw'if a==b else'Alice'if x[a]>x[b] else'Bob')

Submission status: Accepted

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

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())
print('Draw' if a==b else 'Alice' if a>b and b!=1 or a==1 else 'Bob')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B = inputMap()
    if A == 1:
        A = 55
    if B == 1:
        B = 55
        
    if A < B:
        print("Bob")
    elif B<A:
        print("Alice")
    else:
        print("Draw")
            
    
    
if __name__ == "__main__":
	main()

Submission status: Accepted

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

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 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
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 > b and b != 1) or a == 1:
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

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

if a == '1':
    a = 100
if b == '1':
    b = 100

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

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 == 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=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 == 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:
#ABC055
a,b = map(lambda x:(int(x)-2)%13,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())
strength = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1]

alice = strength.index(A)
bob = strength.index(B)

if alice > bob:
    print('Alice')
elif alice < bob:
    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')
  elif A < B:
    print('Bob')
  elif B < A:
    print('Alice')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

# solve
card = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1]
if card.index(A) > card.index(B):
    ans = 'Alice'
elif card.index(A) < card.index(B):
    ans = 'Bob'
else:
    ans = 'Draw'

# output
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("Draw")
elif a>b: print("Alice")
elif a<b: print("Bob")

Submission status: Accepted

Solution code:
#54

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

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

Submission status: Accepted

Solution code:
a,b=map(lambda x:(int(x)+13)%15,input().split())
print(['Draw',['Bob','Alice'][a>b]][a!=b])

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().rstrip().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:
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:
"""s = input()
if eval(s.replace(" ",">")): print("Alice")
elif eval(s.replace(" ","<")):print("Bob")
else: print("Draw")
"""
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")