Former PM wins Czech presidency