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())
x = [2,3,4,5,6,7,8,9,10,11,12,13,1]
if x.index(a)>x.index(b):
    print("Alice")
elif x.index(a)==x.index(b):
    print("Draw")
else:
    print("Bob")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=[2,3,4,5,6,7,8,9,10,11,12,13,1]
a,b=map(int,input().split())
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:
# -*- coding: utf-8 -*-
# A
#
# input
a, b = map(int,input().split())
# calc output
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:
""" AtCoder """

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

Submission status: Accepted

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

if a > b:
	ans = "Alice"
elif b > a:
	ans = "Bob"
elif a == b:
	ans = "Draw"

print(ans)

Submission status: Accepted

Solution code:
# coding:utf-8

import sys
# from collections import Counter, defaultdict

INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(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()


a, b = LI()

if a == 1:
    a *= 100
if b == 1:
    b *= 100

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = [int(x) for x in 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= (int(i) for i in 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 = list(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:
ab_list = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

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(i) for i in 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())
def operate(i):
    if i == 1:
        i += 13
    return i
A = operate(A)
B = operate(B)
ans = ["Alice","Bob","Draw"]
if A > B:
    ans_index = 0
elif A < B:
    ans_index = 1
elif A == B:
    ans_index = 2
print(ans[ans_index])

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
i = lambda x: 14 if x == 1 else x
a, b = [i(int(n)) for n in input().split()]
print('Alice' if a > b else 'Bob' if b > a else 'Draw')

Submission status: Accepted

Solution code:
int_a, int_b = map(int, input().split())

int_a = int_a if int_a != 1 else 20
int_b = int_b if int_b != 1 else 20

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("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("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")
  exit()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
A = (A+12)%14
B = (B+12)%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 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("Bob")
elif a == b:
    print("Draw")
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

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

Submission status: Accepted

Solution code:
A,B = [int(i) for i in 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())
A,B=(A-2)%13,(B-2)%13
if A>B:
  print("Alice")
elif A==B:
  print("Draw")
else:
  print("Bob")

Submission status: Accepted

Solution code:
T = input().rstrip().split(" ")
A = int(T[0])
B = int(T[1])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import sys
import math

x = input().split()
#y = input().split()
a = []
for i in range(len(x)):
   a.append(int(x[i]))
if a[0] == 1:a[0] = 14
if a[1] == 1:a[1] = 14

if a[0] == a[1]:print("Draw")
elif a[0] < a[1]:print("Bob")
else :print("Alice")

Submission status: Accepted

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

strong = list(range(2,14)) + [1]

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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=map(int,input().split())
a=(a+12)%14
b=(b+12)%14
print(['Draw','Bob','Alice'][(a<b)-(a>b)])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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=map(int,input().split())
a=(a+12)%14
b=(b+12)%14
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('Bob')

elif(b < a):
    print('Alice')

else:
    print('Draw')

Submission status: Accepted

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


def main():
    """Function."""
    a, b = map(int, input().split())

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
A = (A + 11) % 13
B = (B + 11) % 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 == 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 = [int(_) for _ in 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:
    winner = 'Draw'
elif A == 1:
    winner = 'Alice'
elif B == 1:
    winner = 'Bob'
elif A > B:
    winner = 'Alice'
else:
    winner = 'Bob'

print(winner)

Submission status: Accepted

Solution code:
a = [2,3,4,5,6,7,8,9,10,11, 12,13, 1]

alice, bob = map(int, raw_input().split())

if a.index(alice) > a.index(bob):
	print "Alice"

elif a.index(alice) < a.index(bob):
	print "Bob"
else:
	print "Draw"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
D=[i for i in range(2,14)]+[1]
a,b=map(int,input().split())
print(['Bob','Alice','Draw'][(D.index(a)>=D.index(b))+(D.index(a)==D.index(b))])

Submission status: Accepted

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

for c in range(2):
	if card[c] == 1:
		card[c] = 14
 		
if card[0] > card[1]:
	print('Alice')
	
elif card[0] < card[1]:
	print('Bob')
	
else:
	print('Draw')

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-


"""
https://beta.atcoder.jp/contests/abc054/tasks/abc54_1
"""

import sys
import math
from inspect import currentframe

def debug(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args), file=sys.stderr)

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())
num_list = [2,3,4,5,6,7,8,9,10,11,12,13,1]
a_st = num_list.index(a) 
b_st = num_list.index(b)
if a_st > b_st:
    print("Alice")
elif a_st < b_st:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

Solution code:
A, B = list(map(int, input().rstrip().split()))
if A == 1:
    A = 14

if B == 1:
    B = 14

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

print(result)

Submission status: Accepted

Solution code:
import sys
a,b = map(int, input().split())
ans = None
if a==b:
    print("Draw")
    sys.exit()
    
if a==1:
    print("Alice")
    sys.exit()

if b == 1:
    print("Bob")
    sys.exit()
    
print("Alice" if a > b else "Bob")

Submission status: Accepted

Solution code:
a=input().strip().split(" ")

b=[int(i) for i in a]

for i in range(2):
    if(b[i]==1):
        b[i]=int(13)
    else:
        b[i]=b[i]-1

if(b[0]>b[1]):
    print("Alice")
elif(b[0]==b[1]):
    print("Draw")
else:
    print("Bob")

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(1000000)


# Debug output
def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))


# Binary converter
def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]


def gcd(n, m):
    if n % m == 0:
        return m
    else:
        return gcd(m, n % m)


def gcd_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = gcd(v, L[i])

    return v


def lcm(n, m):
    return (n * m) // gcd(n, m)


def lcm_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = lcm(v, L[i])

    return v


# Width First Search (+ Distance)
def wfs_d(D, N, K):
    """
    D: 隣接行列(距離付き)
    N: ノード数
    K: 始点ノード
    """

    dfk = [-1] * (N + 1)
    dfk[K] = 0

    cps = [(K, 0)]
    r = [False] * (N + 1)
    r[K] = True
    while len(cps) != 0:
        n_cps = []
        for cp, cd in cps:
            for i, dfcp in enumerate(D[cp]):
                if dfcp != -1 and not r[i]:
                    dfk[i] = cd + dfcp
                    n_cps.append((i, cd + dfcp))
                    r[i] = True

        cps = n_cps[:]

    return dfk


# Depth First Search (+Distance)
def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

    以下は別途用意する
    D: 隣接リスト(行列ではない)
    D_dfs_d: dfs_d関数で用いる，始点ノードから見た距離リスト
    """

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

    for next_v, d in D[v]:
        if next_v != pre:
            dfs_d(next_v, v, dist + d)

    return


def sigma(N):
    ans = 0
    for i in range(1, N + 1):
        ans += i
    return ans


def comb(n, r):
    if n - r < r: r = n - r
    if r == 0: return 1
    if r == 1: return n

    numerator = [n - r + k + 1 for k in range(r)]
    denominator = [k + 1 for k in range(r)]

    for p in range(2, r + 1):
        pivot = denominator[p - 1]
        if pivot > 1:
            offset = (n - r) % p
            for k in range(p - 1, r, p):
                numerator[k - offset] /= pivot
                denominator[k] /= pivot

    result = 1
    for k in range(r):
        if numerator[k] > 1:
            result *= int(numerator[k])

    return result

def bisearch(L, target):
    low = 0
    high = len(L) - 1
    
    while low <= high:
        mid = (low + high) // 2
        guess = L[mid]
        if guess == target:
            return True
        elif guess < target:
            low = mid + 1
        elif guess > target:
            high = mid - 1
    if guess != target:
        return False

# --------------------------------------------

dp = None


def main():
    A, B = li_input()

    A = A if A != 1 else 14
    B = B if B != 1 else 14

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


main()

Submission status: Accepted

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

A = A if A != 1 else A + 13
B = B if B != 1 else B + 13

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
power = [i for i in range(2, 13+1)] + [1]
A, B = map(lambda x: power.index(int(x)), input().split())
if A < B:
  print('Bob')
elif A == B:
  print('Draw')
else:
  print('Alice')

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]
ind_a = L.index(A)
ind_b = L.index(B)
if ind_a > ind_b:
  print("Alice")
elif ind_a < ind_b:
  print("Bob")
else:
  print("Draw")

Submission status: Accepted

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

print(r)

Submission status: Accepted

Solution code:
#! /usr/bin/python3
# One Card Poker

""" 弱 2 < 3 < ... < 13 < 1 強  """

A, B = map(int, input().split())
# Alice, Bob のカード


def main():
    """ 勝者の出力 """
    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')
    else:
        print('Error')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- 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')
else:
  print('Bob')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input().split()
A = int(data[0])
B = int(data[1])
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:
    if b==1:
        print('Draw')
    else:
        print('Alice')
else:
    if b==1:
        print('Bob')
    else:
        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 == B:
    ans = 'Draw'
elif A == 1:
    ans = 'Alice'
elif B == 1:
    ans = 'Bob'
else:
    ans = 'Alice' if A > B else 'Bob'

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dic = {'2':1, '3':2, '4':3, '5':4, '6':5, '7':6, '8':7, '9':8, '10':9, '11':10, '12':11, '13':12, '1':14}
a,b = map(str,input().split())

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

Submission status: Accepted

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

if a == 1:
  a = 15
if b == 1:
  b = 15

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())
l = [2,3,4,5,6,7,8,9,10,11,12,13,1]
print(["Draw","Alice", "Bob"][(a != b) + (l.index(b) > l.index(a))])

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('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 and b == 1:
    print("Draw")
elif a==1:
    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())

a_pw = (a+11) % 13
b_pw = (b+11) % 13

if   a_pw == b_pw:
    print('Draw')
elif a_pw > b_pw:
    print('Alice')
elif a_pw < b_pw:
    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())
a, b = a+13*(a<2),b+13*(b<2)
if a>b:
  print("Alice")
elif a<b:
  print("Bob")
else:
  print("Draw")

Submission status: Accepted

Solution code:
#coding: utf-8
A, B = [int("14" if x == "1" else x) for x in input().split()]
print("Alice" if A > B else "Bob" if B > A else "Draw")

Submission status: Accepted

Solution code:
#coding: utf-8
A, B = map(int, input().split())

if A == 1 and B == 1:
    A = 14
    B = 14
elif A == 1:
    A = 14
elif B == 1:
    B = 14

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