In a state lottery a three digit integer is selected at random. A player bets $1 on a particular number and if that number is selected, the payoff is $500 minus the $1 paid for the ticket. Let X equal the payoff to the bettor, namely -$1 or $499, and find E(X).