map<int,bool> -> set