Anatomy

A 45-year-old man is admitted to the hospital after a car crash. Radiographic examination reveals mild disk herniations of C7, C8, and T1. The patient presents with a sensory deficit of the C8 and T1 spinal nerve dermatomes. The dorsal root ganglia of C8 and T1 would contain cell bodies of sensory fibers carried by which of the following nerves?