10065 in words is written as :

Ten Thousand Sixty Five