#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string a, b;
  int even = 1, beg = 0;
  int ans = 0;
  int i;
  cin >> a >> b;
  int f = b.length();
  for (i = 0; i < f; i++)
    if (a[i] != b[i]) even = 1 - even;
  ans += even;
  for (i = f; i < a.length(); i++) {
    if (a[beg] != a[i]) even = 1 - even;
    ans += even, beg++;
  }
  cout << ans << endl;
  return 0;
}
