3166 in words is written as :

Three Thousand One Hundred and Sixty Six