Let $ABCDE$ be a pentagon with area $2017$ such that four of its sides $AB, BC, CD$, and $EA$ have integer length. Suppose that $\angle A = \angle B = \angle C = 90^o$, $AB = BC$, and $CD = EA$. The maximum possible perimeter of $ABCDE$ is $a + b \sqrt{c}$, where $a$, $b$, and $c$ are integers and $c$ is not divisible by the square of any prime. Find $a + b + c$.

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