#include<iostream> #include<set> using namespace std; int main(){ int n; while(cin >> n) { set<int> res; for(int i = 0 ; i < n ; ++i) &nb...