Determine the greatest possible value of $\sum_{i=1}^{10}\cos(3x_i)$ for real numbers $x_1,x_2,\ldots,x_{10}$ satisfying $\sum_{i=1}^{10}\cos(x_i)=0.$ The original answer is in \frac{m}{n} format, please give the value of m + n.

Let's think step by step and output the final answer within \boxed{}.
user