f(x) = abs(x)^.5 + 5x^3
for i in map(parseint,reverse(split(readline())))
v = f(i)
println("$i: ", v > 400 ? "TOO LARGE" : v)
end