49986171 in words is written as :

Million Thousand One Hundred and Seventy One