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