11871 in words is written as :

Eleven Thousand Eight Hundred and Seventy One