#include #include #include #include int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,a=0,b=0,sum=0,count=0,flag=0,s=0; char *st; scanf("%d",&n); st=(char *)malloc(sizeof(char)*n); scanf("%s",st); for(int i=0;ia) flag=1; } if(flag==1) { sum=a+b; if(sum==0) { count++; a=0; b=0; flag=0; s=0; } } } printf("%d",count); return 0; }