Salyg1n and the MEX Game

Problem Name:
Salyg1n and the MEX Game
Site:CodeForces
Links:
Tags:
Problem setters: