安卓系统的安德鲁德是一个银河系著名的侦探。在他的空闲时间,他喜欢思考包含零和一的字符串。
有一次,他想到了一个由0和1组成的长度为n的字符串。考虑以下操作:我们选择字符串中任何两个相邻的位置,如果其中一个包含0,另一个包含1,那么我们就可以从字符串中删除这两个数字,结果得到一个长度为n-2的字符串。
现在Andreid想一想,在多次应用上述操作后,字符串的最小长度是多少(可能是0)?请帮助他计算出这个数字。
输入
输入的第一行包含一个整数n(1≤n≤2-105),即Andreid拥有的字符串的长度。
第二行包含长度为n的字符串,只由0和1组成。
Andrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.
Once he thought about a string of length
n consisting of zeroes and ones. Consider the following operation: we choose any two
adjacent positions in the string, and if one them contains 0, and the other contains 1, then we are allowed to remove these two digits from the string, obtaining a string of length
n-2 as a result.
Now Andreid thinks about what is the minimum length of the string that can remain after applying the described operation several times (possibly, zero)? Help him to calculate this number.
Output
Output the minimum length of the string that may remain after applying the described operations several times.
Note
In the first sample test it is possible to change the string like the following:
.
In the second sample test it is possible to change the string like the following:
.
In the third sample test it is possible to change the string like the following:
.