10504 in words is written as :

Ten Thousand Five Hundred and Four