#include <bits/stdc++.h> using namespace std; int n, l, y; char t; int main() { cin >> n; for (int i = 1; i <= n; i ++ ){cin >> t;if (t == '1') y ++;else l ++;} cout << abs(l - y); }
input() s=input() print(abs(s.count('1')-s.count('0')))
python3 yyds
python3 yyds