A sequence of positive integers with $n$ terms satisfies $\sum_{i=1}^{n} a_i = 2007$. Find the least positive integer $n$ such that there exist some consecutive terms in the sequence with their sum equal to $30$.

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