#include <bits/stdc++.h>
using namespace std;
int n;
string s1, s2;
bool isdifferent[1000001];
int main(void) {
  cin >> s1 >> s2;
  int sl2 = s2.length();
  int sl1 = s1.length();
  long long i, j, same = 0, sum = 0, all = 0;
  for (i = 1; i < sl1; i++) {
    isdifferent[i] = (s1[i] != s1[i - 1]);
  }
  for (i = 0; i < sl2; i++) {
    if (s1[i] != s2[i]) {
      same++;
    }
  }
  same = same % 2;
  if (!same) {
    sum++;
  }
  for (i = 1; i < sl2 + 1; i++) {
    if (isdifferent[i]) {
      all++;
    }
  }
  same += all;
  same = same % 2;
  if (!same) {
    sum++;
  }
  for (i = 2; i <= sl1 - sl2; i++) {
    all += (isdifferent[i - 1]);
    all += (isdifferent[i + sl2 - 1]);
    same += all;
    same = same % 2;
    if (!same) {
      sum++;
    }
  }
  printf("%d\n", sum);
  return 0;
}
