#55197: cpp_answer


yp11451202@yphs.tp.edu.tw (705-38黃鈺潤)


#include<bits/stdc++.h>
 
using namespace std;
 
 
int main(){
string a;
int A=0,B=0,c=0;
getline(cin,a);
for(int i=0;i<a.size();i+=2){
A=A+int(a[i]-48);
}
for(int i=1;i<a.size();i+=2){
B=B+(a[i]-48);
}
c=abs(A-B);
cout<<c<<endl;
 
 return 0;
}