2999998871 in words is written as :

Two Billion Million Thousand Eight Hundred and Seventy One