5407 in words is written as :

Five Thousand Four Hundred and Seven