#include <bits/stdc++.h>
using namespace std;
long long a,b,i,dem;
int main()
{
cin>>a>>b;
dem=0;
for (i=a; i<=b; i++) if (i%2==0) dem++;
cout<<dem;
}
Var n1,n2,i,dem:integer;
Begin
Write('Nhap n1 = ');readln(n1);
Write('Nhap n2 = ');readln(n2);
For i:=n1 to n2 do
If i mod 2 = 0 then dem:=dem+1;
Write('Co ',dem,' so chan');
Readln;
End.