Anatomy

A 39-year-old woman complains of an inability to reach the top of her head to brush her hair. History reveals that she had undergone a bilateral mastectomy procedure 2 months earlier. Physical examination demonstrates winging of both of her scapulae. Which nerves were most likely damaged during surgery?