#include <iostream>
#include <vector>
#include <set>
int main()
{
std::vector<int> from = { 1, 2, 3 };
std::set<int> to;
std::copy(begin(from), end(from), std::inserter(to, begin(to)));
for (auto x : to)
std::cout << x << " ";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c2V0PgoKaW50IG1haW4oKQp7CglzdGQ6OnZlY3RvcjxpbnQ+IGZyb20gPSB7IDEsIDIsIDMgfTsKCXN0ZDo6c2V0PGludD4gdG87CgkKICAgIHN0ZDo6Y29weShiZWdpbihmcm9tKSwgZW5kKGZyb20pLCBzdGQ6Omluc2VydGVyKHRvLCBiZWdpbih0bykpKTsKICAgIAogICAgZm9yIChhdXRvIHggOiB0bykKICAgICAgICBzdGQ6OmNvdXQgPDwgeCA8PCAiICI7CgogICAgcmV0dXJuIDA7Cn0=