Which of the following U.S. President died on 4th July 1826?

Which of the following U.S. President died on 4th July 1826?

A. John Adam
B. Thomas Jefferson
C. James Medison
D. Both A & B