#include #include #include #include int main(){ std::cout.sync_with_stdio(false); std::vector vc; size_t N; std::cin >> N; vc.reserve(N); int temp; std::cin>>temp; vc.push_back(temp); size_t cnt{1}; for(size_t s; s>temp; size_t a = count(std::begin(vc),std::end(vc),temp); if(a == 0){ vc.push_back(temp); cnt++; } if(1 == a){ vc.push_back(temp); cnt--; } } std::cout<