If ~$p, r$~, and ~$s$~ are consecutive integers in ascending order and ~$x$~ is the average (arithmetic mean) of the three integers, what is the value of ~$x$~?
1. Twice x is equal to the sum of ~$p, r$~, and ~$s$~.
2. The sum of ~$p, r$~, and ~$s$~ is zero.