<P> Sam encounters Jeor's son Jorah, who is infected by the terminal disease greyscale . Sam discovers a cure for greyscale in an old medical text . Although Ebrose forbids him from attempting it, Sam treats Jorah anyway, out of gratitude for Jeor's saving his life . Sam is successful in curing Jorah, who is discharged from the Citadel . Ebrose is grudgingly impressed, but reassigns Sam to transcribe papers in danger of decomposing . </P> <P> Sam overhears Ebrose and several other maesters discussing a warning sent by Bran about the White Walkers' march on the Wall, and is dismayed when the maesters are skeptical . While transcribing the papers in his quarters, Gilly discovers from a recently - deceased High Septon's journal that Rhaegar Targaryen had his marriage to Elia Martell annulled and married another woman (Lyanna Stark) in secret, but Sam does not realize the significance of this information due to Gilly having mispronounced Rhaegar as' Ragger' . Annoyed at being unable to help in the battle against the White Walkers from the Citadel, Sam steals scrolls pertaining to the White Walkers and leaves Oldtown with Gilly and Little Sam . </P> <P> Sam and his family arrive at Winterfell in the season finale, where Sam is reunited with Bran . When Bran tells Sam that Jon is actually the bastard son of Rhaegar Targaryen and Lyanna Stark, Sam is reminded of the record detailing Rhaegar receiving an annulment to marry another woman and tells Bran of his discovery . Bran then uses his greenseeing abilities to witness the wedding, and deduces that Jon is a trueborn Targaryen and the actual heir to the Iron Throne . </P> <Table> <Tr> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Randyll </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Melessa Florent </Td> <Td_colspan="2"> </Td> </Tr> <Tr> <Td> </Td> <Td> </Td> </Tr> <Tr> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> </Tr> <Tr> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> <Td> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td> </Td> </Tr> <Tr> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Samwell </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Talla </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Daughter </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Daughter </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Dickon </Td> <Td_colspan="2"> </Td> <Td_colspan="6"> Eleanor Mooton </Td> <Td_colspan="2"> </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> </Table>

What happens to sam on game of thrones
find me the text answering this question