A problem in statistics is given to three students $P$, $Q$ and $R$. Their chances of solving the problem are $\frac{1}{2}$, $\frac{1}{3}$ and $\frac{1}{4}$ respectively. If all of them try independently, then the probability that the problem is solved is