Find the range of θ in the interval (0, π) such that the points (3, 5) and (sinθ, cosθ) lie on the same side of the line x + y − 1 = 0.