On Dirichlet, Poncelet and Abel problems