4087 in words is written as :

Four Thousand Eighty Seven