#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N >> S; ll ans=0; REP(i,N){ if(S[i]=='0'){ if(i+1