The Backward Light Switch

There are NN stage lights in a row, numbered 11 through NN. All lights are initially off.

Pressing button ii toggles every light from 11 through ii, inclusive: lights that were off turn on, and lights that were on turn off. You may press any button any number of times.

You are given the lighting pattern required for the opening scene. What is the minimum number of button presses needed to create it?

Input

The first line contains NN.

The second line contains a binary string of length NN. Character ii is 1 if light ii should be on, or 0 if it should be off.

Output

Print the minimum number of button presses.

Constraints

Notes

In Sample 1, press button 44 to obtain 11110, then button 22 to obtain 00110.

In Sample 2, press button 44 once.

Sample Input 1 Sample Output 1
5
00110
2
Sample Input 2 Sample Output 2
4
1111
1