40005 in words is written as :

Forty Thousand Five