Input (grade 6): Both her mother and her father came from samurai families.
Output (grade 6): Both, her mother and her father, came from samurai families.