Ten-sided die with one reroll
Asked at IMC
You roll a fair ten-sided die (faces through ) and are paid its face value. After the first roll you may reroll once; if you reroll, you must accept the second roll.
What is the fair value of the game, and which first rolls should you keep?