The Third Cup is Free

Problem Name:
The Third Cup is Free
Site:CodeForces
Links:
Tags:
Problem setters: