A bag contains $n + 1$ coins. It is known that one of these coins shows heads on both sides, whereas the other coins are fair. One coin is selected at random and tossed. If the probability that toss results in heads is $\frac{7}{12}$, then the value of $n$ is.