$365$ is an interesting number because it can be expressed as a sum of three consecutive squares ($10^2 + 11^2 + 12^2$) AND as a sum of two consecutive squares ($13^2 + 14^2$). What is the next biggest integer for which this property can happen?