#Jordan Burns and Kristin Elias
#1/20/2012
#COP 3223H
#calculate the number of electoral votes to win.

def main ():

    #Define Constants.
    VotesNeeded = 270
    TotalVotes = 538

    #Get User Input.
    InBagVotes = int(input("How many electoral votes does your candidate have already?\n"))
    LostVotes = int(input("How many electoral votes does your opponent have already?\n"))

    #Calculate percent needed to win.
    Remaining = TotalVotes - InBagVotes - LostVotes
    PercentToWin = ((VotesNeeded - InBagVotes)/Remaining)*100

    print(PercentToWin,"percent of the remaining vote is needed to win!\n")

main ()
    
