#include <iostream> #include <set> #include <vector> #include <algorithm> using namespace std; int main() { int N; cin >> N; set<int> numbers; for (int i = 0; i < N; ++i) { int num; cin >> num;...