#include <map>
#include <string>
#include <iostream>
int main()
{
std::map<int, std::string> myMap =
{{ 1, "One"},
{2, "Two"},
{3, "Three"},
{7, "Seven"}};
myMap.erase(myMap.begin());
auto i = myMap.upper_bound(4);
std::cout << (--i)->second << '\n';
std::cout << myMap.size() << '\n';
}
I2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbigpCnsKICAgICAgICBzdGQ6Om1hcDxpbnQsIHN0ZDo6c3RyaW5nPiBteU1hcCA9CiAgICAgICAgICAgICAgIHt7IDEsICJPbmUifSwKICAgICAgICAgICAgICAgIHsyLCAiVHdvIn0sCiAgICAgICAgICAgICAgICB7MywgIlRocmVlIn0sCiAgICAgICAgICAgICAgICB7NywgIlNldmVuIn19OwoJCW15TWFwLmVyYXNlKG15TWFwLmJlZ2luKCkpOwoKICAgICAgICBhdXRvIGkgPSBteU1hcC51cHBlcl9ib3VuZCg0KTsKICAgICAgICBzdGQ6OmNvdXQgPDwgKC0taSktPnNlY29uZCA8PCAnXG4nOwogICAgICAgIHN0ZDo6Y291dCA8PCBteU1hcC5zaXplKCkgPDwgJ1xuJzsKCn0=