#include #include #include #include int main() { long n,i,level=0,count=0; char a[1000000]; scanf("%ld",&n); int flg=0; scanf("%s",a); for(i=0;i=0 && flg==1) { flg=0; count++; //printf(" count=%ld flag=%d\n",count,flg); } } printf("%ld",count); /* Enter your code here. Read input from STDIN. Print output to STDOUT */ return 0; }