5407047 in words is written as :

Five Million Thousand Forty Seven