Vasya is playing a turn-based strategy game called Energy Tycoon.
The rules are simple.
Vasya already knows which power plant he can build on each turn. What is the largest total score he can reach?
The first line contains the number of slots n (1≤n≤100000).
The second line contains a string s. If the i-th character of s is 1, you can build a one-slot power plant on turn i, and if it is 2, you can build a two-slot power plant on turn i. The number of turns does not exceed 100000.
Print the largest total score that can be achieved.