There is absolutely nothing in the constitution which prohibits an individual to contest the position for president after serving two consecutive terms then; after a period of time; again contest for the position.
The constitution is clear that a person cannot contest for the position for three consecutive terms.