..
.
Fences
.
Answer :

Four fences only are necessary, as follows:





Math Genius