s[101];i,j;a['~~'][2];c; main(n){ for(scanf("%d",&n);js[j+1]&&(*a[c]=j,a[c++][1]=j+1,s[j+1]^=s[j]^=s[j+1]^=s[j]); for(printf("%d\n",c),i=0;i