#!/usr/bin/python3
import random

iGuessesTaken = 0

print('What da name, playa?')
sPlayaName = input()

iNumba = random.randint(1, 20)

print('Su\'up, ' + sPlayaName +', ma\'mon! We playin\' guess da numba. Numba\'s between 1 and 20.', end='')

while iGuessesTaken < 4:
    print(' Take a guess.')
    iGuess = int(input())
    iGuessesTaken += 1

    if iGuess < iNumba:
        print('Naah, not enough you aim, playa!', end='')

    if iGuess > iNumba:
        print('D\'oh! Too much.', end='')

    if iGuess == iNumba:
        break

if iGuess == iNumba:
    print('Respect, ' + sPlayaName + '! Yo numba is da numba! Ma\'mon \'ere wons in ' + str(iGuessesTaken) + ' guesses.')

if iGuess != iNumba:
    print('\n' + sPlayaName + ', ma\'mon! Bad numba foreva! Numba wass ' + str(iNumba) + ', so ya loosin\' big time.')
