#include <iostream>
#include <set>
using namespace std;
int main() {
set<int> a;
a.insert(1);
a.insert(5);
a.insert(6);
set<int>::iterator it = a.lower_bound(5);
if (it != a.begin()) {
it--;
cout << *it << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c2V0Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBzZXQ8aW50PiBhOwogICAgYS5pbnNlcnQoMSk7CiAgICBhLmluc2VydCg1KTsKICAgIGEuaW5zZXJ0KDYpOwogICAgc2V0PGludD46Oml0ZXJhdG9yIGl0ID0gYS5sb3dlcl9ib3VuZCg1KTsKICAgIGlmIChpdCAhPSBhLmJlZ2luKCkpIHsKICAgICAgaXQtLTsKICAgICAgY291dCA8PCAqaXQgPDwgZW5kbDsKICAgIH0KICAgIHJldHVybiAwOwp9