# Advanced Modular Arithmetic #2

$\large N=2004^{2003^{2002^{2001^{2000^{1999^{\cdots}}}}}}$

What is the remainder when $$N$$ is divided by 1000?

×