#include using namespace std; const int maxn = 1e6 + 10; int arr[maxn]; int main() { int n; scanf("%d",&n); for (int i = 0; i