9171 in words is written as :

Nine Thousand One Hundred and Seventy One