Which word in bold letters is the subject in this sentence?

Dan agreed to pay his bill in three installments.

A.
Dan
B.
pay
C.
bill
D.
installments