Definition: In this task, you will be presented with a text, a pronoun from the text, and two candidate names. You should determine what the pronoun refers to and classify the answers into A, B, or Neither. A and B here are referring to option A and option B. Position of the pronoun in the text is showed within two "_"s.
Input: In 1208, the imperial candidate Philip of Swabia died and Walern, his erstwhile supporter, turned to his opponent, Otto of Brunswick. In 1212, he accompanied his first cousin Henry I, Duke of Brabant, to Li*ge, then in a war with Guelders. Waleran's first wife, Cunigunda, a daughter of Frederick I, Duke of Lorraine, died in 1214 and in May _he_married Ermesinda of Luxembourg *, and became count there. <sep>, Pronoun: he <sep>, A: Waleran <sep>, B: Frederick I, Duke of Lorraine

A