Elementary bipoles of active regions and ephemeral active regions