5879 in words is written as :

Five Thousand Eight Hundred and Seventy Nine