Find the sum of all possible sums $a + b$ where $a$ and $b$ are nonnegative integers such that $4^a + 2^b + 5$ is a perfect square.

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