#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string S; cin >> S; S += '1'; reverse(S.begin(), S.end()); long long cnt = 0, ans = 0; for(int i=1; i