#include <iostream>
#include <algorithm>
#include <vector>
int main()
{
std::vector<int> iv { 2, 3, 3, 3, 45, 1, 1, 3 };
std::sort(iv.begin(), iv.end());
iv.erase(std::unique(iv.begin(), iv.end()), iv.end());
for (auto& i : iv)
std::cout << i << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8dmVjdG9yPgogCmludCBtYWluKCkgCnsKICAgIHN0ZDo6dmVjdG9yPGludD4gaXYgeyAyLCAzLCAzLCAzLCA0NSwgMSwgMSwgMyB9OwogICAgc3RkOjpzb3J0KGl2LmJlZ2luKCksIGl2LmVuZCgpKTsgCiAgICBpdi5lcmFzZShzdGQ6OnVuaXF1ZShpdi5iZWdpbigpLCBpdi5lbmQoKSksIGl2LmVuZCgpKTsKCiAgICBmb3IgKGF1dG8mIGkgOiBpdikKICAgICAgICBzdGQ6OmNvdXQgPDwgaSA8PCBzdGQ6OmVuZGw7CiAgICAgICAgCiAgICByZXR1cm4gMDsKfQ==