How do write 500000 in Spanish?

500.000 = quinientos mil (masculin)/ quinientas mil (femanin)