#include <iostream>
using namespace std;

int main() {
	int a, b;
	cin>>a>>b;
	int result = (b+4)/7 - (a+4)/7 + (a%7==3);
	cout<<result;
	return 0;
}