\begin{logicproof}{0}
	p & \prem \\
	p \imp q & \prem \\
	p \imp (q \imp r) & \prem \\
	q \imp r & $\impe1,3$\\
	q  & $\impe 1,2$ \\
	r  & $\impe 4,5$
\end{logicproof}
