The first term of a given sequence is 1, and each successive term is the sum of all the previous terms of the sequence. What is the value of the first term which exceeds 5000?

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