Solved Wolves and Sheeps.