solution EMD variante A 2