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