The magnetic origin of multiferroic Y2CoMnO6