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:
#!/usr/bin/env python3
import sys


def solve(A: int, B: int):
    A -= 2
    A %= 13
    B -= 2
    B %= 13
    print("Alice" if A > B else "Bob" if B > A else "Draw")


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.readline()[:-1]

def main():
    a,b=MI()
    if a==1:a=14
    if b==1:b=14
    if a==b:ans="Draw"
    elif a>b:ans="Alice"
    else:ans="Bob"
    print(ans)

main()

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import bisect
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
n,m = map(int,readline().split())

if n == m:
    print("Draw")
elif n==1 or m == 1:
    if n ==1:
        print("Alice")
    else:
        print("Bob")
else:
    if n > m:
        print("Alice")
    else:
        print("Bob")

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
strong=[2,3,4,5,6,7,8,9,10,11,12,13,1]
if strong.index(A)>strong.index(B):
    print('Alice')

elif strong.index(A)==strong.index(B):
    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("Bob")
elif b<a:
    print("Alice")
else:
    print("Draw")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 = list(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=list(map(int,input().split()))
for i in range(2):
    if a[i]==1:
        a[i]=14
if a[0]>a[1]:
    print("Alice")
elif a[0]<a[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:
a,b=list(map(int,input().split()))
if a==1:
    a=14
if b==1:
    b=14

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#ABC054 A

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
f = lambda k:14 if k<2 else k
a,b = f(a),f(b)
print('Alice' if a>b else 'Bob' if a<b else 'Draw')

Submission status: Accepted

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


def solve(A: int, B: int):
    if A==B:
        return "Draw"
    elif 1 == A or 1 == B:
        if A==1:
            return "Alice"
        else:
            return "Bob"
    else:
        if A > B:
            return "Alice"
        else:
            return "Bob"

# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    print(solve(A, B))

if __name__ == '__main__':
    main()

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

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]
i=x.index(a)
j=x.index(b)
print('Draw' if i==j else ('Alice' if i>j else 'Bob'))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

if A==1:
    print("Alice")
    exit()
if B==1:
    print("Bob")
    exit()

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
a = (a-2)%13
b = (b-2)%13
print("Alice"*(a>b) or "Bob"*(b>a) or "Draw")

Submission status: Accepted

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

if a == 1:
    a += 100
if b == 1:
    b += 100
    
print("Alice"*(a>b) or "Bob"*(b>a) or "Draw")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
if A == 1:
    A+=13
if B == 1:
    B+=13
if A>B:
    print("Alice")
if A==B:
    print("Draw")
if A<B:
    print("Bob")

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 054
# A - One Card Poker
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 a < b :
  print("Bob") 
else : 
  print("Draw")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# 出力　Aliceが勝つならAliceを、Bobが勝つならBobを、引き分けならDrawを出力せよ。

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,input().split())
if A==1:
    A=A+13
if B==1:
    B=B+13

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

Submission status: Accepted

Solution code:
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
mod=1000000007

#+++++

def main():
	a,b = IN()
	is_a=lambda x:14 if x==1 else x
	a=is_a(a)
	b=is_a(b)
	if a==b:
		return 'Draw'
	ret='Alice' if a > b else 'Bob'
	return ret
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
A,B = list(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 == B:
  print('Draw')
else:
  print( 'Alice' if (A if A != 1 else A+13) > (B if B != 1 else B+13) else 'Bob')

Submission status: Accepted

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

elif a>b:
    print('Alice')
else :
    print('Bob')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B = MAP()

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

Alice = l.index(A)
Bob = l.index(B)

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




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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A == B: ans = 2
elif B == 1: ans = 1
elif A == 1: ans = 0
elif A < B: ans = 1
else: ans = 0
print(["Alice", "Bob", "Draw"][ans])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==1:
	a=14
if b==1:
	b=14
if a==b:
	print('Draw')
else:
	print(['Alice','Bob'][a<b])

Submission status: Accepted

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

def aorb(A , B):
    if A == B:
        return "Draw"
    elif A == 1 or A > B and B != 1:
        return "Alice"
    else:
        return "Bob"

if __name__ == '__main__':
    ans = aorb(A , B)
    print(ans)

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 31, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A, B = map(int, readline().decode('utf8').split())
if A == 1:
    A = 100
if B == 1:
    B = 100

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 += 13

if B == 1:
    B += 13

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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 == 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 = tuple(input().split())



def strength(nchr):
    if nchr == '2':
        return 0
    elif nchr == '3':
        return 1
    elif nchr == '4':
        return 2
    elif nchr == '5':
        return 3
    elif nchr == '6':
        return 4
    elif nchr == '7':
        return 5
    elif nchr == '8':
        return 6
    elif nchr == '9':
        return 7
    elif nchr == '10':
        return 8
    elif nchr == '11':
        return 9
    elif nchr == '12':
        return 10
    elif nchr == '13':
        return 11
    elif nchr == '1':
        return 12

st_a = strength(A)
st_b = strength(B)
if st_a > st_b:
    print('Alice')
elif st_a < st_b:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

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

diff = A - B

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

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

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

Submission status: Accepted

Solution code:
def get_args():
    A, B = map(int, input().split())
    # print(A, B)

    return A, B


def solve(A, B):
    if A == 1:
        A = 14
    if B == 1:
        B = 14

    if A == B:
        return "Draw"
    elif A < B:
        return "Bob"
    else:
        return "Alice"


if __name__ == '__main__':
    res = solve(*get_args())
    print(res)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #a = r.split()
    #a, b, c = r.split()
    #a = list(map(int, r.split()))
    a,b = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0

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

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

Submission status: Accepted

Solution code:
import sys
a,b=map(int,input().split())
if (a==1 and b==13):
  print('Alice')
  sys.exit()
else:
  pass
if a==13 and b==1:
  print('Bob')
  sys.exit()
else:
  pass
if a>b:
  print('Alice')
elif a==b:
  print('Draw')
else:
  print('Bob')

Submission status: Accepted

Solution code:
n=input().split(' ')
for i in range(0,2):
    if(int(n[i])==1):
        n[i]=14
    n[i]=int(n[i])
if(n[0]>n[1]):
    print("Alice")
elif(n[1]>n[0]):
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Alice, Bob = map(int, input().split())

if Alice == 1:
  Alice = 14
if Bob == 1:
  Bob = 14
  
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 += 20

if b == 1:
	b += 20

if a == b:
	print("Draw")
	exit()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
a,b=map(int,input().split())
if a==1 and b==1:
    print("Draw")
else:
    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())

s = [2, 3, 4, 5, 6, 7,  8, 9, 10, 11, 12, 13, 1]
a = s.index(A)
b = s.index(B)

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

Submission status: Accepted

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