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

def convert_num(a):
    if a == 1:
        a = 14
    return a

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [14 if n == '1' else int(n) for n in 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-2)%13)<((B-2)%13):
  print("Bob")
elif ((A-2)%13)>((B-2)%13):
  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
def calc(a, b):
    if a > b:
        return 'Alice'
    elif a < b:
        return 'Bob'
    else:
        return 'Draw'
print(calc(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")
if a==b: print("Draw")
if a>b: print("Alice")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
card = raw_input().split()
alice = int(card[0])
bob = int(card[1])

if alice == bob:
  print("Draw")
else:
  if alice == 1:
    print("Alice")
  elif bob == 1:
    print("Bob")
  else:
    if bob > alice:
      print("Bob")
    else:
      print("Alice")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split()
A = int(l[0])
B = int(l[1])
if A == 1 :A = 14
if B == 1 :B = 14
if (A == B): print('Draw' )
if (A > B ): print('Alice' )
if (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=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())

A = (A-2)%13
B = (B-2)%13

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

Submission status: Accepted

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

Submission status: Accepted

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

    A = 14 if A == 1 else A
    B = 14 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())
h=[0,14]+list(range(2,14))
if a==b:
  print("Draw")
else:
  print("Alice"if h[a]>h[b]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 (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:
import sys
a, b = map(int, sys.stdin.readline().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:
print((["Alice"]*13+["Draw"]+["Bob"]*13)[sum(x*y for x,y in zip([(14-int(a))%13 for a in input().split()],(1,-1)))+13])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int,raw_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():
    T = [i for i in range(2, 14)]
    T.append(1)

    A, B = map(int, input().split())
    hoge = T.index(A)
    fuga = T.index(B)
    if hoge > fuga:
        print("Alice")
    elif hoge < fuga:
        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 == 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 > B:
	print('Alice')
	exit()
	
if B > A:
	print('Bob')
	exit()

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

Submission status: Accepted

Solution code:
val = [int(x) for x in input().split()]
a = val[0]
b = val[1]

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 == 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())
def change(x):
    if x == 1:
        return 14
    else:
        return x

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

Submission status: Accepted

Solution code:
n, m = list(map(int, input().split()))
if n == 1:
    n = 14
if m == 1:
    m = 14
if n > m:
    print("Alice")
if n < m:
    print("Bob")
if n == m:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(len(ls)):
    if ls[i] == 1:
        ls[i] += 13

if ls[0] == ls[1]:
    print("Draw")
elif ls[0] > ls[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

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 += 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, raw_input().split())

if a == 1:
    a += 13
if b == 1:
    b += 13

    
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 is 1:
    a += 13
if b is 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:
    if A != 1 and B == 1:
        print('Bob')
    else:
        print('Alice')
elif A < B:
    if A == 1 and B != 1:
        print('Alice')
    else:
        print('Bob')
else:
    print('Draw')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


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

    if a == b:
        print("Draw")
    elif (a > b and b != 1) or a == 1:
        print("Alice")
    elif (b > a and a != 1) or b == 1:
        print("Bob")
    else:
        print("You must be wrong ...")
        sys.exit()


if __name__ == "__main__":
    main()

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 = 20

if b == 1:
    b = 20

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

Submission status: Accepted

Solution code:
def inint(): return int(input())
def inlint(): return list(map(int, input().split()))
def infloat(): return float(input())
def inlffloat(): return list(map(float, input().split()))
def inl(): return list(input())
def putlint(): return "".join(list(map(str, ans)))

a,b = inlint()

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

Submission status: Accepted

Solution code:
cards = input().split()

def judge(A, B):
    if (A != 1) and (B != 1):
        if A > B:
            return 'Alice'
        elif A < B:
            return 'Bob'
        else:
            return 'Draw'
    else:
        if A < B:
            return 'Alice'
        elif A > B:
            return 'Bob'
        else:
            return 'Draw'

print(judge(int(cards[0]), int(cards[1])))

Submission status: Accepted

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



def main():
    A, B = map(int, input().split())

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

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

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
input_line = map(int,raw_input().split(" "))
a = input_line[0]
b = input_line[1]

if a != b:
	if 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==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(" ")))
hand = [2,3,4,5,6,7,8,9,10,11,12,13,1]

if hand.index(A) > hand.index(B):
    print("Alice")
elif hand.index(A) == hand.index(B):
    print("Draw")
else:
    print("Bob")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()
x = s.split()
A = int(x[0])
B = int(x[1])
if A == 1:
    if B == 1:
        print('Draw')
    else:
        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>=2 and A<B:
    print("Bob")

elif A==13 and B==1:
    print("Bob")

elif A==B:
    print("Draw")

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

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    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")


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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
Alice,Bob=[int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

# Input
Alice,Bob = [int(i) for i in input().split()]

if Alice==1:
  Alice = 14

if Bob==1:
  Bob = 14

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 = 14
if b == 1:
    b = 14

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = input()
a2 = a.split()
a = int(a2[0])
b = int(a2[1])

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

Submission status: Accepted

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

if __name__ == '__main__':
    solve()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [int(t) for t in input().split()]
a = (a + 11) % 13
b = (b + 11) % 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 > b:
    if b == 1:
        print('Bob')
    else:
        print('Alice')
elif a < b:
    if a == 1:
        print('Alice')
    else:
        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('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
A,B=list(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 = map(int,raw_input().split())

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

Submission status: Accepted

Solution code:
l = input().split()

A = int(l[0])
B = int(l[1])

if A == 1:
    A = 14
if B == 1:
    B = 14
    
if A > B:
    print("Alice")
if A == B:
    print("Draw")
if A < B:
    print("Bob")

Submission status: Accepted

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

a = n[0]
b = n[1]

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 = list(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:
# -*- coding: utf-8 -*-

import sys
import os


a, b = map(int, input().split())
if a == 1:
    a += 100
if b == 1:
    b += 100

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

Submission status: Accepted

Solution code:
#! coding:UTF-8
data = list(map(int,input().split(" ")))
if 1 in data:
	if data.count(1) == 2:
		print("Draw")
	elif data.index(1) == 0:
		print("Alice")
	else:
		print("Bob")
else:
	if data[0] == data[1]:
		print("Draw")
	elif data[0] > data[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 or (a>b and b !=1):
    print("Alice")
else:
    print("Bob")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

if a < b:
    win = "Bob"
elif b < a:
    win = "Alice"
if a == 1 or b == 1:
    if a < b:
        win = "Alice"
    elif b < a:
        win = "Bob"
if a == b:
    win = "Draw"

print(win)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


A += 11
B += 11
if(A%13>B%13): 
    print('Alice')
elif(A%13<B%13):
    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:
# -*- coding: utf-8 -*-
import sys
# sys.setrecursionlimit(10000)


def main():
    # 入力処理
    # N = int(input())
    A, B = map(int, input().split())

    # アルゴリズム本体
    strength = lambda x: (x - 2) % 13
    if strength(A) > strength(B):
        winner = "Alice"
    elif strength(A) < strength(B):
        winner = "Bob"
    else:
        winner = "Draw"

    # 出力
    print(winner)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    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')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
if __name__ == '__main__':
  l = list([-1,100])
  for i in range(2,14):
    l.append(i)
  # for i in range(1,14):
  #   print(i, l[i])
  s = str(input()).split(" ")
  a = int(s[0])
  b = int(s[1])
  if l[a] > l[b]:
    print("Alice")
  elif l[a] < l[b]:
    print("Bob")
  else:
    print("Draw")

Submission status: Accepted

Solution code:
cards = input().split()
alice = int(cards[0])
bob = int(cards[1])

if alice == bob:
    print("Draw")
elif alice == 1:
    print("Alice")
elif bob == 1:
    print("Bob")
elif alice < bob:
    print("Bob")
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]

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 = list(map(int, input().split()))
if A == B:
    print("Draw")
else:
    A = (A + 11) % 13
    B = (B + 11) % 13
    ans = "Alice" if A > B else "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:
def main():
 x = map(int, raw_input().split())
 if 2 <= x[0] <= 13 and  2 <= x[1] <= 13:
    if(x[0] > x[1]):
        return "Alice"
    elif(x[0] < x[1]):
        return "Bob"
    else:
        return "Draw"
 elif x[0] == 1 and  2 <= x[1] <= 13:
    return "Alice"
 elif x[1] == 1 and  2 <= x[0] <= 13:
    return "Bob"
 else:
    return "Draw"
print main()

Submission status: Accepted

Solution code:
A,B = [int(x) for x in input().split()]
if A==B:
    print('Draw')
elif A == 1:
    print('Alice')
elif B ==1:
    print('Bob')
elif A>B:
    print('Alice')
elif B>A:
    print('Bob')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

numbers=input().rstrip().split(" ")

if int(numbers[0])==1:
    numbers[0]=14

if int(numbers[1])==1:
    numbers[1]=14
    
if int(numbers[0])>int(numbers[1]):
    print("Alice")

elif int(numbers[0])<int(numbers[1]):
    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:
t = list(str(input()).split(" "))
a = int(t[0])
b = int(t[1])

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

Submission status: Accepted

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

# 4パターン検討する
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 or B == 1:
    if A == B:
        print("Draw")
        exit()
    elif A == 1 and A < B:
        print("Alice")
        exit()
    elif B == 1 and B < A:
        print("Bob")
        exit()

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

Submission status: Accepted

Solution code:
alice, bob = [int(x) for x in raw_input().split()]
if alice == 1: alice = 14
if bob == 1: bob = 14
if alice < bob:
   print 'Bob'
elif alice > bob:
   print 'Alice'
else:
   print 'Draw'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
L = [e for e in range(2, 14)]
L += [1]
a = L.index(A)
b = L.index(B)
if a < b:
    print("Bob")
elif a > b:
    print("Alice")
else:
    print("Draw")

Submission status: Accepted

Solution code:
arr=['2','3','4','5','6','7','8','9','10','11','12','13','1']
dic={}
for i,v in enumerate(arr):
	dic[v]=i
a,b = input().split()
if dic[a]>dic[b]:
	print("Alice")
elif dic[a]<dic[b]:
	print("Bob")
else:
	print("Draw")
# hogehoge

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

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

if b < a:
    print 'Alice'
elif a < b:
    print 'Bob'
elif a == b:
    print 'Draw'

Submission status: Accepted

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