40954 in words is written as :

Forty Thousand Nine Hundred and Fifty Four