{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e Let\u0027s define the function $f(n)\u003d\\lfloor \\sqrt{n}\\rfloor$.\u003cbr\u003e\u003cbr\u003e Bo wanted to know the minimum number $y$ which satisfies $f^y(n)\u003d1$.\u003cbr\u003e\u003cbr\u003e note:$f^1(n)\u003df(n),f^y(n)\u003df(f^{y-1}(n))$\u003cbr\u003e\u003cbr\u003e It is a pity that Bo can only use 1 unit of time to calculate this function each time.\u003cbr\u003e\u003cbr\u003e And Bo is impatient, he cannot stand waiting for longer than 5 units of time.\u003cbr\u003e\u003cbr\u003e So Bo wants to know if he can solve this problem in 5 units of time.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"This problem has multi test cases(no more than $120$).\u003cbr\u003e\u003cbr\u003e Each test case contains a non-negative integer $n(n\u0026lt;10^{100})$."}},{"title":"Output","value":{"format":"HTML","content":"For each test case print a integer - the answer $y$ or a string \"TAT\" - Bo can\u0027t solve this problem."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e233\r\n233333333333333333333333333333333333333333333333333333333\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\r\nTAT\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}