If \[\mathrm{f}(x)=x^2+1\] and \[\mathrm{g}(x)=\frac{1}{x}\], then the value of \[\mathrm{f}(\mathrm{g}(\mathrm{g}(\mathrm{f}(x))))\] at \[x=1\] is