#include <bits/stdc++.h>   const int N = 200100;   char a[N], b[N];   int cnt[330];   int main() {     int la, lb, i;     long long ans = 0;     scanf( %s%s , a, b);     la = strlen(a), lb = strlen(b);     for (i = 0; i < lb - la; i++) cnt[b[i]]++;     for (i = 0; i < la; i++) {       cnt[b[lb - la + i]]++;       if (a[i] ==  0 )         ans += cnt[ 1 ];       else         ans += cnt[ 0 ];       cnt[b[i]]--;     }     printf( %I64d n , ans);     return 0;   }   