Hayden qualifies as top Ducati in Valencia