#include using namespace std; int main(){ string n; cin>>n; int ans=abs(8-count(n.begin(),n.end(),'0')); cout<