12387 in words is written as :

Twelve Thousand Three Hundred and Eighty Seven