A chocolate factory initially had 33 chocolate bars. However, 6 of them were given away as samples to customers. Then, 3 of them were used for a quality control testing. How many chocolate bars are left in the factory?