#include<iostream> #include<algorithm> #include<vector> using namespace std; int main(void) { int a[1000]; int n, N; int i = 0; cin >> N; for (i = 0; i < N; i++) { cin >> a[i]; } vector<int> myvector(a, a + N); sort(myv...