#include <bits/stdc++.h>
int main() {
  int n;
  char s[117];
  while (~scanf("%d", &n)) {
    getchar();
    gets(s);
    int ans = 0;
    for (int i = 0; i < n; i++) {
      ans++;
      if (s[i] == '0') break;
    }
    printf("%d\n", ans);
  }
  return 0;
}
