Vus the Cossack has two binary strings, that is, strings that consist only of "0" and "1". We call these strings a and b. It is known that |b| ≤ |a|, that is, the length of b is at most the length of a.

The Cossack considers every substring of length |b| in string a. Let's call this substring c. He matches the corresponding characters in b and c, after which he counts the number of positions where the two strings are different. We call this function f(b, c).

For example, let b = 00110, and c = 11000. In these strings, the first, second, third and fourth positions are different.

Vus the Cossack counts the number of such substrings c such that f(b, c) is even.

For example, let a = 01100010 and b = 00110. a has four substrings of the length |b|: 01100, 11000, 10001, 00010. 

  * f(00110, 01100) = 2;
  * f(00110, 11000) = 4;
  * f(00110, 10001) = 4;
  * f(00110, 00010) = 1.



Since in three substrings, f(b, c) is even, the answer is 3.

Vus can not find the answer for big strings. That is why he is asking you to help him.

Input

The first line contains a binary string a (1 ≤ |a| ≤ 10^6) — the first string.

The second line contains a binary string b (1 ≤ |b| ≤ |a|) — the second string.

Output

Print one number — the answer.

Examples

Input


01100010
00110


Output


3


Input


1010111110
0110


Output


4

Note

The first example is explained in the legend.

In the second example, there are five substrings that satisfy us: 1010, 0101, 1111, 1111.
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map.Entry;

import java.util.Random;
import java.util.Scanner;
import java.util.TreeSet;

public final class CF_571_D2_C {


	static boolean verb=true;
	static void log(Object X){if (verb) System.err.println(X);}
	static void log(Object[] X){if (verb) {for (Object U:X) System.err.print(U+" ");System.err.println("");}}
	static void log(int[] X){if (verb) {for (int U:X) System.err.print(U+" ");System.err.println("");}}
	static void log(int[] X,int L){if (verb) {for (int i=0;i<L;i++) System.err.print(X[i]+" ");System.err.println("");}}
	static void log(long[] X){if (verb) {for (long U:X) System.err.print(U+" ");System.err.println("");}}

	static void logWln(Object X){if (verb) System.err.print(X);}
	static void info(Object o){	System.out.println(o);}
	static void output(Object o){outputWln(""+o+"\n");	}
	static void outputWln(Object o){try {out.write(""+ o);} catch (Exception e) {}}

	//static long mod=1000000007;
	static long mod=998244353 ; 
	static int CX=64;


	// Global vars
	static BufferedWriter out;
	static InputReader reader;

	static long A,B;

	//static int[] pos;
	static Composite[] pos;


	static class Composite implements Comparable<Composite>{
		int x;
		int d;
		int idx;


		public int compareTo(Composite X) {
			if (x!=X.x)
				return x-X.x;
			if (d!=X.d)
				return d-X.d;
			return idx-X.idx;
		}

		public Composite(int x, int d, int idx) {
			this.x = x;
			this.d = d;
			this.idx = idx;
		}

		public boolean equals(Object O) {
			Composite X=(Composite)O;
			return idx==X.idx; 
		}

		public int hashCode() {
			return idx;
		}



	}


	static long powerMod(long b,long e,long m){
		long x=1;
		while (e>0) {
			if (e%2==1)
				x=(b*x)%m;
			b=(b*b)%m;
			e=e/2;
		}
		return x; 
	}

	static long inv(long x,long mod) {
		return powerMod(x,mod-2,mod);
	}

	static long[][] mult(long[][] A,long[][] B,long mod){
		int M=A.length;
		long[][] res=new long[M][M];
		for (int i=0;i<M;i++)
			for (int j=0;j<M;j++) {
				res[i][j]=0;
				for (int k=0;k<M;k++) {
					res[i][j]+=A[i][k]*B[k][j];
					if (res[i][j]>=mod)
						res[i][j]%=mod;
				}
				
			}
		return res;
	}
	
	
	
	static long pgcd(long a,long b){
		if (a<b)
			return pgcd(b,a);
		while (b!=0){
			long c=b;
			b=a%b;
			a=c;
		}
		return a;
	}


	static void process() throws Exception {

		Locale.setDefault(Locale.US);
		out = new BufferedWriter(new OutputStreamWriter(System.out));
		reader = new InputReader(System.in);

	
		String a=reader.readString();
		String b=reader.readString();
		int A=a.length();
		int B=b.length();
		
		
		int[] ref=new int[2];
		for (int i=0;i<B;i++) {
			int x=b.charAt(i)-'0';
			ref[x]++;
		}
		
		int[] cur=new int[2];
		for (int i=0;i<B;i++) {
			int x=a.charAt(i)-'0';
			cur[x]++;
		}
		int res=0;
		for (int j=0;j+B<=A;j++) {
			
			//logWln(a.substring(j,j+B)+" ");
			//log(cur);
			if (cur[0]%2==ref[0]%2 && cur[1]%2==ref[1]%2) {
				res++;
			}
			int x=a.charAt(j)-'0';
			cur[x]--;
			if (j+B<A) {
				x=a.charAt(j+B)-'0';
				cur[x]++;
			}
		}
		
		output(res);
		
		try {
			out.close();
		} catch (Exception E) {
		}

	}

	public static void main(String[] args) throws Exception {
		process();

	}

	static final class InputReader {
		private final InputStream stream;
		private final byte[] buf = new byte[1024];
		private int curChar;
		private int numChars;

		public InputReader(InputStream stream) {
			this.stream = stream;
		}

		private int read() throws IOException {
			if (curChar >= numChars) {
				curChar = 0;
				numChars = stream.read(buf);
				if (numChars <= 0) {
					return -1;
				}
			}
			return buf[curChar++];
		}

		public final String readString() throws IOException {
			int c = read();
			while (isSpaceChar(c)) {
				c = read();
			}
			StringBuilder res = new StringBuilder();
			do {
				res.append((char) c);
				c = read();
			} while (!isSpaceChar(c));
			return res.toString();
		}

		public final int readInt() throws IOException {
			int c = read();
			boolean neg = false;
			while (isSpaceChar(c)) {
				c = read();
			}
			char d = (char) c;
			// log("d:"+d);
			if (d == '-') {
				neg = true;
				c = read();
			}
			int res = 0;
			do {
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			// log("res:"+res);
			if (neg)
				return -res;
			return res;

		}

		public final long readLong() throws IOException {
			int c = read();
			boolean neg = false;
			while (isSpaceChar(c)) {
				c = read();
			}
			char d = (char) c;
			// log("d:"+d);
			if (d == '-') {
				neg = true;
				c = read();
			}
			long res = 0;
			do {
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			// log("res:"+res);
			if (neg)
				return -res;
			return res;

		}

		private boolean isSpaceChar(int c) {
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}
	}

}