Bessie and MEX

Problem Name:
Bessie and MEX
Site:CodeForces
Links:
Tags:
Problem setters: