#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  char b;
  int x = 0;
  cin >> a;
  for (int i = 0; i < a; i++) {
    x++;
    cin >> b;
    int p = b - '0';
    if (p == 0) i = a;
  }
  cout << x << "\n";
}
