14040 in words is written as :

Fourteen Thousand Forty