Three goats and a herdsman with sheeps