87654317 in words is written as :

Million Thousand Three Hundred and Seventeen