#include <iostream>
#include <vector>
#include <set>
int main() {
std::vector<int> originalList = {1, 2, 1, 3, 2, 4, 3, 4};
std::set<int> uniqueElements(originalList.begin(), originalList.end());
for (const auto& element : uniqueElements) {
std::cout << element;
}
return 0;
}