import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
String[] params
= bufferedReader.
readLine().
split(" "); int a
= Integer.
parseInt(params
[0]); int b
= Integer.
parseInt(params
[1]); System.
out.
println((b
+ 4) / 7 - (a
+ 3) / 7); }
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtUmVhZGVyOwoKcHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgdGhyb3dzIEV4Y2VwdGlvbnsKICAgICAgICBCdWZmZXJlZFJlYWRlciBidWZmZXJlZFJlYWRlciA9IG5ldyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIoU3lzdGVtLmluKSk7CiAgICAgICAgU3RyaW5nW10gcGFyYW1zID0gYnVmZmVyZWRSZWFkZXIucmVhZExpbmUoKS5zcGxpdCgiICIpOwogICAgICAgIGludCBhID0gSW50ZWdlci5wYXJzZUludChwYXJhbXNbMF0pOwogICAgICAgIGludCBiID0gSW50ZWdlci5wYXJzZUludChwYXJhbXNbMV0pOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigoYiArIDQpIC8gNyAtIChhICsgMykgLyA3KTsKICAgIH0KfQ==