#include <bits/stdc++.h>   using namespace std;   long long arr[200200];   int main() {     string a, b;     cin >> a >> b;     long long x = 0, y = 0;     for (int i = 0; i <= b.size() - a.size(); i++) x += (b[i] -  0 );     for (int i = 0; i < a.size(); i++) {       y += (a[i] ==  0 ) ? x : (b.size() - a.size() + 1) - x;       x += b[b.size() - a.size() + 1 + i] - b[i];     }     cout << y;     return 0;   }   