#include using namespace std; int main() { int n,i,p,j,h=0,flag=0; cin>>n; int a[n]; while(n--){ cin>>p; for(i=1;i