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 = [int(x) for x in input().split()]

for i in range(len(a_b)):
    num=a_b[i]
    if num==1:
        num=1000
    a_b[i] = num
    
ans='Draw'
if a_b[0] > a_b[1]:
    ans='Alice'
elif a_b[0] < a_b[1]:
    ans='Bob'
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
c = [13,1,2,3,4,5,6,7,8,9,10,11,12]

if c[a-1] > c[b-1]:
    print('Alice')
elif c[a-1] < c[b-1]:
    print('Bob')
else:
    print('Draw')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a == 1 and b != 1:
    print("Alice")
elif b == 1 and a != 1:
    print("Bob")
elif 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 == 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 -*-
# N = int(input())
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:
# -*- coding: utf-8 -*-S
A,B = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    A, B = map(int, input().split())
    if A - B == 0:
        print('Draw')
    elif A == 1:
        print('Alice')
    elif B == 1:
        print('Bob')
    elif A - B > 0:
        print('Alice')
    elif B - A > 0:
        print('Bob')


main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split());
if a<2:a=14
if b<2:b=14
print("ADBlroiabcw e"[(a==b)+(a<b)*2::3])

Submission status: Accepted

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

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

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

Submission status: Accepted

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


idx = [(i+1)%13+1 for i in range(13)]

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

Submission status: Accepted

Solution code:
num = input().split()
tmp = [2,3,4,5,6,7,8,9,10,11,12,13,1]

if int(num[0])==int(num[1]): print('Draw')
elif tmp.index(int(num[0]))>tmp.index(int(num[1])): print('Alice')
elif tmp.index(int(num[1]))>tmp.index(int(num[0])): 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:
x,y = map(int,input().split())
if x == 1:
  x = 14
if y == 1:
  y = 14
if x > y:
  print('Alice')
elif y > x:
  print('Bob')
elif x == y:
  print('Draw')

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:
alice, bob = list(map(int,input().split()))
if alice == 1:
  alice+=13
if bob == 1:
  bob+=13
if alice > bob:
  print('Alice')
elif alice == bob:
  print('Draw')
else:
  print('Bob')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = list(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 b > a:
    print("Bob")
  else:
    print("Draw")

Submission status: Accepted

Solution code:
# ABC 054 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')
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('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 a < b:
    print("Bob")
else:
    print("Draw")

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

Submission status: Accepted

Solution code:

def main():
    a, b = map(int, input().split())
    if a == 1:
        a = 14
    if b == 1:
        b = 14
    if a > b:
        print('Alice')
    elif a < b:

        print('Bob')
    else:
        print('Draw')



if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == 1:
	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:
# https://atcoder.jp/contests/abc054/tasks/abc054_a
# A - One Card Poker
a, b = list(map(int, input().split()))

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

if a == b:
    answer = 'Draw'
elif a < b:
    answer = 'Bob'
elif a > b:
    answer = 'Alice'

print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a==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:
  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 :
  flag = False
  if min(a, b) == 1 : flag = True
  if a < b :
    if flag : print('Alice')
    else : print('Bob')
  else :
    if flag : print('Bob')
    else : print('Alice')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys, re, os
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
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

a, b = MAP()
l = [14,1,2,3,4,5,6,7,8,9,10,11,12,13]
a = l[a-1]
b = l[b-1]
if a > b:
    print("Alice")
elif b > a:
    print("Bob")
else:
    print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y=input().split()
a,b=int(x),int(y)
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")
if A<B:
	print("Bob")
if A == B:
	print("Draw")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
lines = sys.stdin.readlines()
for linea in lines:
    c = linea.split()
    c = list(map(int,c))
list(c)
x = c[0:2]
if x[0] == x[1]:
  print("Draw")
  sys.exit()
if x[0] == 1:
  print("Alice")
  sys.exit()
if x[1] == 1 :
  print("Bob")
  sys.exit()
else:pass
if x[0] ==2:
  print("Bob")
  sys.exit()
if x[1] ==2:
  print("Alice")
  sys.exit()
if x[0]>x[1]:
  print("Alice")
  sys.exit()
elif x[0]<x[1]:
  print("Bob")
  sys.exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
for i in range(2):
    if l[i]==1:l[i]=14
    else:pass

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a, b = LI()
    a -= 2
    b -= 2
    a %= 13
    b %= 13
    if a > b:
        print("Alice")
    elif a < b:
        print("Bob")
    else:
        print("Draw")
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

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

A = (A + 12) % 14
B = (B + 12) % 14

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

Submission status: Accepted

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

if a==1:
    a+=13

if b==1:
    b+=13

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)


def solve(A: int, B: int):
    ret = 'Draw'
    if A != B:
        if A == 1 :
            ret = 'Alice'
        elif B == 1 :
            ret = 'Bob'
        elif A > B :
            ret = 'Alice'
        else:
            ret = 'Bob'
    print(ret)
    return


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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, B = list(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 A == B:
        print("Draw")
    else:
        print("Bob")

Submission status: Accepted

Solution code:

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

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

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

Submission status: Accepted

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

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

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

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

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

Submission status: Accepted

Solution code:
x, y = map(int,input().split())
#ls = list(map(int,input().split()))
#n = int(input())
#s = input()
#x, y = input().split()

if (x == 1 and y != 1):
  print("Alice")
elif (x != 1 and y == 1):
  print("Bob")
elif x == y:
  print("Draw")
elif x > y:
  print("Alice")
elif y > x:
  print("Bob")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if A == 1:
    A += 13
if B == 1:
    B += 13

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

Submission status: Accepted

Solution code:
a,b = 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')
elif B > A:
    print('Bob')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N,M=map(int,input().split())
if N==1 :
    N+=13
if M==1:
    M+=13
if N==M:
    print("Draw")
elif N>M:
    print("Alice")
else:
    print("Bob")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())

if a==1:
    a=14

if b==1:
    b=14

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

A, B = nl()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = list(map(int,input().split()))
#print(A,B)
k = []
for i in range(2,13+1):
  k.append(i)

k.append(1)
#print(k)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
strength = [ str(i) for i in range(2,14) ] + ["1"]
a , b = [ v for v in input().split() ]
if strength.index(a) > strength.index(b):
  print("Alice")
elif strength.index(a) == strength.index(b):
  print("Draw")
else:
  print("Bob")

Submission status: Accepted

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

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

C = A - B

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

Submission status: Accepted

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

strength = list(range(2, 14)) + [1]
C = strength.index(A) - strength.index(B)
if C == 0:
    print("Draw")
elif C > 0:
    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')

else:
    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

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

Submission status: Accepted

Solution code:
def abc():
    a, b = map(int, input().split())
    if a == 1:
        a = 14
    if b == 1:
        b = 14
    if a > b:
        print('Alice')
        return
    if a < b:
        print('Bob')
        return
    print('Draw')


abc()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

# print(A)
# print(B)

# print(list.index(A))
# print(list.index(B))

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

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