#include <iostream> #include <bits/stdc++.h> using namespace std; #define MAX 1001 int main() { int a[MA