20047 in words is written as :

Twenty Thousand Forty Seven