A man withdrew some money from the bank. He gave 1/2 of it to his sons and 1/3 to his daughter. If he had $500.00 left, how much did he take from the bank?