The Beavers Problem - 3

Problem Name:
The Beavers Problem - 3
Site:CodeForces
Links:
Tags:
Problem setters: