Nađi najveći prirodan broj

takav da postoji prirodni broj

za koji je

. Ako je

, ispišite njegov ostatak pri dijeljenju s

.
Find the greatest positive integer

such that there is a positive integer

for which

. If

, write the remainder when

is divided by

.
[lang=hr]
Nađi najveći prirodan broj $m$ takav da postoji prirodni broj $a$ za koji je $m! \cdot 2026!=a!$. Ako je $m>2027$, ispišite njegov ostatak pri dijeljenju s $2027$.
[/lang]
[lang=en]
Find the greatest positive integer $m$ such that there is a positive integer $a$ for which $m! \cdot 2026!=a!$. If $m>2027$, write the remainder when $m$ is divided by $2027$.
[/lang]