I've got a 498 solution. Can anyone top that? I'm fairly sure some very careful tweaks would save another 10 or 20, but I don't have the patience.
I'm not posting the solution till I see someone elses up there, since I like making people think for themselves