Medvedev wins his first tournament in nearly 3 years.