Daniil Medvedev qualified for the final