#include int main(void){ int cnt = 0; int i,j,n; int a[100010]; char flag[100010]; scanf("%d", &n); for(i=0;i