You exchanged $1,000 to 104,000 yen for a trip to Japan. During your stay, you spent 10,000 yen. Also, during this period the dollar weakened against the yen to 99.5 to a dollar. On your return, you went to the bank to exchange 94,000 yen. How many dollars did you lose or gain due to the weakened dollars?
A. Gain of $4.5
B. Gain of $45
C. Loss of $5
D. Gain of $41