Ned bought 331 pieces of candy to give to 35 of his friends. If he wants to give each friend the same amount, how many pieces would he have left over