We can find an acute triangle with the three altitude lengths 1, 3, and h, if and only if h^2 belongs to interval (p,q). Find (p, q).