#include<iostream> int main(){ int a,b,c=0,d=0; scanf("%d %d",&a,&b); c=a; while (c<=b) { if (c%6==0||c%8==0) { d=d+1; } c++; } printf("%d",d); return 0; }