import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int n = scn.nextInt(); scn.nextLine(); String steps = scn.nextLine(); int stepsSum = 0,counter = 0,v=0; for(int i=0;i0&&stepsSum==0){v=0;counter++;} } System.out.println(counter); } }