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: Runtime Error

Solution code:
from itertools import permutations

def f(n, m, uu, vv):
    a = [[0] *n for _ in range(n)]
    for u, v in zip(uu, vv):
        a[u][v] = 1
        a[v][u] = 1
    res = 0
    for p in permutations(range(n)):
        if p[0] != 0:
            break
        ok = True
        for i in range(n - 1):
            if a[p[i]][p[i+1]] == 0:
                ok = False
                break
        if ok:
            res += 1
    return res

n , m = map(int, input().split())
a = []
b = []
for k in range(m):
    _a, _b = map(int, input().split())
    _a -= 1
    _b -= 1
    a.append(_a)
    b.append(_b)
print(f(n, m, a, b))

Submission status: Runtime Error

Solution code:
#coding: utf-8

if __name__=="__main__":
    a, b = list(map(int, input().replace("\n","").split(" ")))
    if(a > b):
	print("Alice")
    elif(a == b):
	print("Draw")
    else:
	print("Bob")

Submission status: Runtime Error

Solution code:
def check(y,x):
    if 0<=y<=n-1 and 0<=x<=n-1:
        return True
    return False

n,m=map(int,raw_input().split())
a=[raw_input() for _ in xrange(n)]
b=[raw_input() for _ in xrange(m)]
for i in xrange(n):
    for j in xrange(n):
        cnt=0
        for k in range(m):
            for l in xrange(m):
                if check(k+i,l+j):
                    if a[k+i][l+j]==b[k][l]:
                        cnt+=1
        if cnt==m*m:
            print("Yes")
            exit()
print("No")

Submission status: Runtime Error

Solution code:
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: Runtime Error

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

def val():
	if a==1 or (a>b and b!=1):
		return "ALICE"
	else:
		return "BOB"
print (val())

Submission status: Runtime Error

Solution code:

alice = int(input())
bob = int(input())

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

Submission status: Runtime Error

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

これは一時的なスクリプトファイルです
"""
alice = int(input())
bob = int(input())

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

Submission status: Runtime Error

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

alice = int(input())
bob = int(input())

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

Submission status: Runtime Error

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: Runtime Error

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

これは一時的なスクリプトファイルです
"""
alice = int(input())
bob = int(input())

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

Submission status: Runtime Error

Solution code:
!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
 import sys
 
 for line in sys.stdin:
     card = line.split(" ")
 
     if card[0] > card[1]:
        print("Alice")
    elif card[0] < card[1]:
        print("Bob")
    else:
        print("Draw")

Submission status: Runtime Error

Solution code:
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: Runtime Error

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

Alice, Bob = map(int, input())
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: Runtime Error

Solution code:
a = ['2','3','4','5','6','7','8','9','10','11','12','13']
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'