#include using namespace std; int main() { string s; cin>>s; s='0'+s; reverse(s.begin(),s.end()); int N=s.size(); int ans=0; for(int i=0;i