#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long 
using namespace std;
int main(){
  string s;
  cin >>s;
  int bl=0;
  int wh=0;
  rep(i,s.size()){
    if(s[i]=='0'){
      wh++;
    }else{
      bl++;
    }
  }
  