MotoGp, Bagnaia wins in Valencia. Rossi ends his career with a tenth place