#include<iostream> #include<cstdio> #include<cstdlib> #include<string> #include<algorithm> int main() { int len = 0; scanf("%d", &len); std::vector<int> nums(len, 0); for (int i = 0; i < len; ++i) { scanf("%d"...