What party was John Q Adams?

john q Adams was in Dep/Rep: )