Beautiful Binary String

  • + 0 comments
    n=int(input())
    s=input()
    v='010'
    a=s.count(v)
    print(a)