5020007 in words is written as :

Five Million Twenty Thousand Seven