#include using namespace std; int N; int A[1000]; int main() { scanf("%d", &N); for(int i=0; i