# Arup Guha
# 1/25/2012
# The Price is Right!

import random

def main():

    random.seed()

    # Create the price for the item.	
    realprice = random.randint(1,100)
    
    # Get both players' guesses.
    player1 = int(input("What is your guess, player 1?\n"))
    player2 = int(input("What is your guess, player 2?\n"))

    # There are five cases here. The only case no handled is the tie.
    if player1 > realprice and player2 > realprice:
        print("Both of you went over. No Winner :(\n")

    elif player2 > realprice:
        print("Player 1, you win because Player 2 busted.\n")

    elif player1 > realprice:
        print("Player 2, you win because Player 1 busted.\n")

    elif player1 > player2:
        print("Player 1, you win. You were off by",realprice-player1)

    else:
        print("Player 2, you win. You were off by",realprice-player2)

    print("real price is",realprice)

main()
