Each of the persons \( A \) and \( B \) independently tosses \( 3 \) fair coins. The probability that both of them get the same number of heads is :
\( \frac{5}{8} \)
\( \frac{5}{16} \)
\( \frac{1}{8} \)
\( 1 \)