Problem:


Score : 100 points

Problem Statement

Alice and Bob are playing One Card Poker.

One Card Poker is a two-player game using playing cards.  

Each card in this game shows an integer between 1 and 13, inclusive.

The strength of a card is determined by the number written on it, as follows:  

Weak 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < 10 < 11 < 12 < 13 < 1 Strong  

One Card Poker is played as follows:  

Each player picks one card from the deck. The chosen card becomes the player's hand.

The players reveal their hands to each other. The player with the stronger card wins the game.

If their cards are equally strong, the game is drawn.  

You are watching Alice and Bob playing the game, and can see their hands.

The number written on Alice's card is A, and the number written on Bob's card is B.

Write a program to determine the outcome of the game.  

Constraints

1≦A≦13 

1≦B≦13 

A and B are integers.

Input

The input is given from Standard Input in the following format:

A B

Output

Print Alice if Alice will win. Print Bob if Bob will win. Print Draw if the game will be drawn.

Sample Input 1

8 6

Sample Output 1

Alice

8 is written on Alice's card, and 6 is written on Bob's card.
Alice has the stronger card, and thus the output should be Alice.

Sample Input 2

1 1

Sample Output 2

Draw

Since their cards have the same number, the game will be drawn.

Sample Input 3

13 1

Sample Output 3

Bob



Sample input:
8 6


Sample output:
Alice

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

[a, b] = map(int, input().split())
[a, b] = map(lambda s: 14 if s==1 else s, [a, b])
if a==b:
    print("Draw")
elif a > b:
    print("Alice")
else:
    print("Bob")

Submission status: Accepted

Solution code:
Alice,Bob = input().split()
Alice = int(Alice) if Alice != "1" else 14
Bob = int(Bob) if Bob != "1" else 14

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

Submission status: Accepted

Solution code:
def getRank(n):
    nums = [2,3,4,5,6,7,8,9,10,11,12,13,1]
    rank = 99
    for i in range(13):
        if n == nums[i]:
            rank = i
            break
    return rank



a,b = list(map(int, input().split()))
alice = getRank(a)
bob = getRank(b)
if alice > bob:
    print("Alice")
elif alice < bob:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

Solution code:
# coding: utf-8

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

def compare(a, b):
	if a == b:
		return 0 # draw
	elif a == 1:
		return 1 # a
	elif b == 1:
		return -1 # b
	elif a > b:
		return 1 # a
	else:
		return -1 # b

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b=input().split()
a, b=int(a), int(b)
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 = [int(i) for i in 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:
import sys
[Alice, Bob] = sys.stdin.readline().split()
if Alice == Bob:
	print('Draw')
	sys.exit()
if Alice == '1':
	print('Alice')
	sys.exit()
if Bob == '1':
	print('Bob')
	sys.exit()
if int(Alice) < int(Bob):
	print('Bob')
else:
	print('Alice')

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 "Bob"
else:
	print "Draw"

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = [int(i) for i in raw_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=[i for i in range(2,15)]
b,c=map(int,input().split())
print('Draw' if c==b else('Alice' if a[b-2]>a[c-2]else'Bob'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a_str, b_str = input().split()

a = int(a_str)
b = int(b_str)


def change(i):
    if i == 1:
        return 14
    else:
        return i


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

Submission status: Accepted

Solution code:
# -*- coding:utf8

A,B = [int(x) for x in raw_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 to_fourteen(x):
    return 14 if x == "1" else int(x)

alice, bob = map(to_fourteen, input().split())
if alice == bob:
    print("Draw")
else:
    print("Alice" if alice > bob else "Bob")

Submission status: Accepted

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

A = raw_input()
B = A.split()
C, D = int(B[0]), int(B[1])

if C == 1:
  if D == 1:
    print 'Draw'
  else:
    print 'Alice'
else:
  if D == 1:
    print 'Bob'
  else:
    if C > D:
      print 'Alice'
    elif C < D:
      print 'Bob'
    else:
      print 'Draw'

Submission status: Accepted

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

A = raw_input()
B = A.split( )
C, D = int(B[0]), int(B[1])

if C == 1:
  if D == 1:
    print 'Draw'
  else:
    print 'Alice'
else:
  if D == 1:
    print 'Bob'
  else:
    if C > D:
      print 'Alice'
    elif C < D:
      print 'Bob'
    else:
      print 'Draw'

Submission status: Accepted

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

def bigThan(a, b):
    if a == 1 and b == 1:
        return False
    elif a == 1 and b != 1:
        return True
    elif a != 1 and b == 1:
        return False
    else:
        return a > b


def judge(a, b):

    if a == b:
        return "Draw"
    elif bigThan(a, b):
        return "Alice"
    else:
        return "Bob"

# スペース区切りの整数の入力
a, b = map(int, input().split())

j = judge(a, b)
print(j)

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:
cards = list(map(int, input().split()))
a = cards[0]
b = cards[1]

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

Submission status: Accepted

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

if A==1:
    if B==1:
        print("Draw")
    else:
        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, raw_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:
input = input().split()
A,B=int(input[0]),int(input[1])
 
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("Alice")
else:
    print("Bob")

Submission status: Accepted

Solution code:
# get Alice's card A and Bob's card B
a, b = map(int, raw_input().split())

# adjust for card strength, 1 > 13
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:
#coding:utf-8
A, B = map(int, input().rstrip().split())
if A != 1 and B != 1:
  if A > B:
    print("Alice")
  elif A < B:
    print("Bob")
  else:
    print("Draw")
else:
  if A < B:
    print("Alice")
  elif A > B:
    print("Bob")
  else:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
data = map(int, raw_input().split())

if data[0] == data[1]:
    print "Draw"
elif (data[1] != 1 and data[0] > data[1]) or data[0] == 1:
    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:
#!/usr/bin/env python

numbers = raw_input().split()

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

Submission status: Accepted

Solution code:
#ABC054A

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

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    A, B = map(int, input().split())
    d = {1: 14}

    if d.get(A, A) == d.get(B, B):
        print("Draw")
    elif d.get(A, A) > d.get(B, B):
        print("Alice")
    else:
        print("Bob")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return list(map(int, input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()


def main():
    a,b = LI()
    if a == b:
        return 'Draw'
    if a==13 and b==1:
        return 'Bob'
    if a==1 and b==13:
        return 'Alice'
    if a > b:
        return 'Alice'

    return 'Bob'

print(main())

Submission status: Accepted

Solution code:
#coding: UTF-8
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("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:
    print('Alice')
elif a<b:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b = map(int, raw_input().split())
ans = ""
if a == b:
    ans = "Draw"
elif a > b:
    if b != 1:
        ans = "Alice"
    else:
        ans = "Bob"
else:
    if a != 1:
        ans = "Bob"
    else:
        ans = "Alice"
    
# 出力
print ans

Submission status: Accepted

Solution code:
a,b=list(map(int,input().split(" ")))
if a==1:
    a+=13
if b==1:
    b+=13

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
 
a, b = map(int, input().split())
if a==1:a=100
if b==1:b=100
[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('Draw'if a==b else'Alice'if b!=1 and(a==1 or a>b)else'Bob')

Submission status: Accepted

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

def f(A, B):
    i = strength.index(A)
    j = strength.index(B)
    if i > j:
        return 'Alice'
    if i < j:
        return 'Bob'
    return 'Draw'

A, B = input().split()
A = int(A)
B = int(B)
print(f(A, B))

Submission status: Accepted

Solution code:
def f(A, B):
    if A == 1 and B == 1:
        return 'Draw'
    if A == 1:
        return 'Alice'
    if B == 1:
        return 'Bob'
    
    if A > B:
        return 'Alice'
    if A < B:
        return 'Bob'
    return 'Draw'

A, B = input().split()
A = int(A)
B = int(B)
print(f(A, B))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def read():
    return int(input())

def reads(sep=None):
    return list(map(int, input().split(sep)))

def main():
    a, b = reads()
    if a == 1:
        a = 14
    if b == 1:
        b = 14

    if a == b:
        print('Draw')
    elif a > b:
        print('Alice')
    else:
        print('Bob')
 
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 B > A:
    print("Bob")
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
 
def val():

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

Submission status: Accepted

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

if a==b:
	print "Draw"
else:
	if a!=1 and b!=1:
		if a<b:
			print "Bob"
		else:
			print "Alice"
	elif a==1 and b!=1:
		print "Alice"
	else:
		print "Bob"

Submission status: Accepted

Solution code:
def solve(alice, bob):
    if alice == bob: return "Draw"
    return "Alice" if alice > bob else "Bob" 

if __name__ == '__main__':
    alice, bob = [14 if token == '1' else int(token) for token in input().split()]
    ans = solve(alice, bob)
    print(ans)

Submission status: Accepted

Solution code:
#A One card Poker
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,input().split())
print('Draw' if a==b else 'Alice' if b!=1 and (a==1 or a>b) else 'Bob')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def get_strength(x):
    if x == 1:
        strength = 13
    else:
        strength = x - 1

    return strength


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

Sa = get_strength(A)
Sb = get_strength(B)

if Sa == Sb:
    message = "Draw"
elif Sa > Sb:
    message = "Alice"
else:
    message = "Bob"

print(message)

Submission status: Accepted

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

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

Submission status: Accepted

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

from fractions import gcd

def readln():
    _res = list(map(int,str(input()).split(' ')))
    return _res

def strong(x,y):
    if y == 1 : return False
    return (x == 1) or (x > y)

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Spyderエディタ

これは一時的なスクリプトファイルです
"""
alice = input().split()
alice[0] = int(alice[0])
alice[1] = int(alice[1])
if(alice[0] == alice[1]):
    print("Draw")
elif(alice[0] == 1):
    print("Alice")
elif(alice[1] == 1):
    print("Bob")
elif(alice[0] < alice[1]):
    print("Bob")
elif(alice[0] > alice[1]):
    print("Alice")

Submission status: Accepted

Solution code:
import sys
 
for line in sys.stdin:
    card = line.split(" ")
    alice = int(card[0])
    bob = int(card[1])
    if alice == 1:
        alice += 13
    if bob == 1:
        bob += 13
        
    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:
def Main():
  a, b = map(int, input().split())
  if a > 1 and b > 1:
    if a < b:
      print("Bob")
    elif a > b:
      print("Alice")
    elif a == b:
      print('Draw')

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


if __name__ == '__main__':
  Main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A , B = [int(n) for n 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:
    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:
from sys import exit, setrecursionlimit
from functools import reduce
from itertools import *
from collections import defaultdict
from bisect import bisect

def read():
  return int(input())

def reads():
  return [int(x) for x in input().split()]

setrecursionlimit(1000000)

(a, b) = reads()

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

Submission status: Accepted

Solution code:
table = {'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, }
ary = [table[i] for i in input().strip().split()]
if (ary[1] - ary[0]) > 0:
    print('Bob')
elif ary[1] == ary[0]:
    print('Draw')
else:
    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"
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')
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:
import numpy as np

N = raw_input().split(" ")
N = map(int,N)

ref = [2,3,4,5,6,7,8,9,10,11,12,13,1]

a = ref.index(N[0])
b = ref.index(N[1])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())
if a == b:
    print 'Draw'
else:
    print 'Bob' if (a - 1 or 13) < (b - 1 or 13) else 'Alice'

Submission status: Accepted

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

def v():
    if A == 1:
        if B != 1:
            return 'Alice'
        else:
            return 'Draw'
    if B == 1:
        if A != 1:
            return 'Bob'
        else:
            return 'Draw'
    if A > B:
        return 'Alice'
    if B > A:
        return 'Bob'
    return 'Draw'

print(v())

Submission status: Accepted

Solution code:
c = input().split()
a = int(c[0])
b = int(c[1])
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 = input().split()
a = (int(a) + 11) % 13
b = (int(b) + 11) % 13

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import sys
A, B = map(int, input().split())
if A == B:
    print("Draw")
    sys.exit()
if A > B:
    if B == 1:
        print("Bob")
    else:
        print("Alice")
else:
    if A == 1:
        print("Alice")
    else:
        print("Bob")

Submission status: Accepted

Solution code:
input_line1 = input()
str_list = input_line1.split(" ")

Alice = int(str_list[0])
Bob = int(str_list[1])

if Alice == 1:
    Alice = 15
if Bob == 1:
    Bob = 15
    
if Alice > Bob:
    print("Alice")
if Bob > Alice:
    print("Bob")
if Alice == Bob:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

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

    if a == b:
        return 'Draw'

    if a == 1:
        return 'Alice'
    if b == 1:
        return 'Bob'

    return 'Alice' if a>b else 'Bob'

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

Submission status: Accepted

Solution code:
def f(a, b):
    if a == b:
        return 'Draw'
    if a > b:
        return 'Alice'
    if a < b:
        return 'Bob'

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

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

Submission status: Accepted

Solution code:
nums = list(map(int, input().split()))
if nums[0] > nums[1]:
	if nums[1] != 1:
		print('Alice')
	else:
		print('Bob')
elif nums[0] < nums[1]:
	if nums[0] == 1:
		print('Alice')
	else:
		print('Bob')
else:
	print('Draw')

Submission status: Accepted

Solution code:

strn = [2,3,4,5,6,7,8,9,10,11,12,13,1]
a, b = map(int, input().split())
a_idx = strn.index(a)
b_idx = strn.index(b)

ans = 'Draw'
if a_idx < b_idx:
    ans = 'Bob'
elif a_idx > b_idx:
    ans = 'Alice'
print(ans)

Submission status: Accepted

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

Alice, Bob = map(int, input().split())
if Alice == 1:
    Alice = 14
if Bob == 1:
    Bob = 14

if Alice > Bob:
    print('Alice')
elif Bob > Alice:
    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 += 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, raw_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:
l = [2,3,4,5,6,7,8,9,10,11,12,13,1]
A, B = list(map(int, input().split()))
if A == B:
    print('Draw')
elif l.index(A) > l.index(B):
    print('Alice')
else:
    print('Bob')

Submission status: Accepted

Solution code:
# coding: utf-8

a, b= map(int, raw_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,raw_input().split())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if a > b:
    if a == 13 and b == 1:
        idx = 1
    else:
        idx = 0
elif a < b:
    if a == 1 and b == 13:
        idx = 0
    else:
        idx = 1
else:
    idx = 2

print(l[idx])

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:
N = input().split()
A = int(N[0])
B = int(N[1])

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
A, B = [(int(n)+11)%13 for n in input().split() ]
if A > B:
    print("Alice")
elif A < B:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a < 2: a = 14
if b < 2: 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 == 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:
# coding=utf-8

if __name__ == '__main__':
    l = list()

    for s in raw_input().split():
        if int(s) == 1:
            l.append(14)
        else:
            l.append(int(s))

    if l[0] < l[1]:
        print('Bob')
    elif l[1] < l[0]:
        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")
elif a < b:
    print("Bob")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,raw_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"
else:
	print "error"

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
a,b = map(int,input().split())
if a == b:
    print('Draw')
elif a == 1:
    print('Alice')
elif b == 1:
    print('Bob')
elif a > b:
    print('Alice')
elif a < b:
    print('Bob')

Submission status: Accepted

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