The surname of the husband or wife who changed surnames upon marriage reverts to the surname used before marriage upon divorce by agreement.
婚姻によって氏を改めた夫又は妻は、協議上の離婚によって婚姻前の氏に復する。
The husband or wife whose surname has reverted to the surname used before marriage pursuant to the provisions of the preceding paragraph may take the surname used at the time of divorce by filing a registration pursuant to the Family Register Act within three months of the day of divorce.
Read this with the articles around it