#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
vector<pair<int, string>> list;
int main() {
int one = 1, two = 2, three =3, five =5, six = 6;
string bla = "bla";
list.push_back( pair<int, string>(two, bla));
list.push_back( pair<int, string>(one, bla));
list.push_back( pair<int, string>(two, bla));
list.push_back( pair<int, string>(six, bla));
list.push_back( pair<int, string>(five, bla));
sort(list.begin(), list.end());
for(auto item : list) {
cout << item.first << endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKI2luY2x1ZGUgPGFsZ29yaXRobT4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2ZWN0b3I8cGFpcjxpbnQsIHN0cmluZz4+IGxpc3Q7CgppbnQgbWFpbigpIHsKCWludCBvbmUgPSAxLCB0d28gPSAyLCB0aHJlZSA9MywgZml2ZSA9NSwgc2l4ID0gNjsKCXN0cmluZyBibGEgPSAiYmxhIjsKCQoJbGlzdC5wdXNoX2JhY2soIHBhaXI8aW50LCBzdHJpbmc+KHR3bywgYmxhKSk7CglsaXN0LnB1c2hfYmFjayggcGFpcjxpbnQsIHN0cmluZz4ob25lLCBibGEpKTsKCWxpc3QucHVzaF9iYWNrKCBwYWlyPGludCwgc3RyaW5nPih0d28sIGJsYSkpOwoJbGlzdC5wdXNoX2JhY2soIHBhaXI8aW50LCBzdHJpbmc+KHNpeCwgYmxhKSk7CglsaXN0LnB1c2hfYmFjayggcGFpcjxpbnQsIHN0cmluZz4oZml2ZSwgYmxhKSk7CgkKCXNvcnQobGlzdC5iZWdpbigpLCBsaXN0LmVuZCgpKTsKCQoJZm9yKGF1dG8gaXRlbSA6IGxpc3QpIHsKCQljb3V0IDw8IGl0ZW0uZmlyc3QgPDwgZW5kbDsKCX0KfQoK