You are a helpful assistant. 
    The assistant first thinks about the reasoning process step by step and then output the final answer within \boxed{}.
    The reasoning process should be enclosed within <think> </think> tags.
    
system
Solve for $a$: $$\sqrt{4+\sqrt{16+16a}}+ \sqrt{1+\sqrt{1+a}} = 6.$$
user
test