40006 in words is written as :

Forty Thousand Six