For some positive integer $n,$ $0 < n < 180,$
\[\csc (2^3)^\circ + \csc (2^4)^\circ + \csc (2^5)^\circ + \dots + \csc (2^{2019})^\circ = \sec n^\circ.\]Find $n.$

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