This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $\cot^{-1}3+\cot^{-1}4=\cot^{-1}\frac{12-1}{7}=\cot^{-1}\frac{11}7$. Adding $\cot^{-1}5$: $\cot^{-1}\frac{\frac{11}7\cdot5-1}{\frac{11}7+5}=\cot^{-1}\frac{48}{46}=\cot^{-1}\frac{24}{23}$. Then $\cot^{-1}\frac{24}{23}+\cot^{-1}n=\frac\pi4=\cot^{-1}1$: $\frac{\frac{24}{23}n-1}{\frac{24}{23}+n}=1\Rightarrow24n-23=24+23n\Rightarrow n=47$. Answer: 47.