#include <bits/stdc++.h>
using namespace std;
struct example {
int compare_element, b, c;
};
struct cmp {
bool operator() (const example& a, const example& b) const {
return a.compare_element < b.compare_element;
}
};
int main() {
set<example, cmp> se;
se.insert({1, 2, 3});
se.insert({1, 5, 6});
cout<<se.size()<<"\n";
for(example e: se)
{
cout<<"{ "<<e.compare_element<<" "<<e.b<<" "<<e.c<<"}\n";
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpzdHJ1Y3QgZXhhbXBsZSB7CiAgICBpbnQgY29tcGFyZV9lbGVtZW50LCBiLCBjOwp9OwoKc3RydWN0IGNtcCB7CiAgICBib29sIG9wZXJhdG9yKCkgKGNvbnN0IGV4YW1wbGUmIGEsIGNvbnN0IGV4YW1wbGUmIGIpIGNvbnN0IHsKICAgICAgICByZXR1cm4gYS5jb21wYXJlX2VsZW1lbnQgPCBiLmNvbXBhcmVfZWxlbWVudDsKICAgIH0KfTsKCmludCBtYWluKCkgewoKICAgIHNldDxleGFtcGxlLCBjbXA+IHNlOwogICAgc2UuaW5zZXJ0KHsxLCAyLCAzfSk7CiAgICBzZS5pbnNlcnQoezEsIDUsIDZ9KTsKICAgIGNvdXQ8PHNlLnNpemUoKTw8IlxuIjsKCiAgICBmb3IoZXhhbXBsZSBlOiBzZSkKICAgIHsKICAgICAgICBjb3V0PDwieyAiPDxlLmNvbXBhcmVfZWxlbWVudDw8IiAiPDxlLmI8PCIgIjw8ZS5jPDwifVxuIjsKICAgIH0KCglyZXR1cm4gMDsKfQ==