Careful Thief

Problem Name:
Careful Thief
Site:CodeForces
Links:
Tags:
Problem setters: