#include #include using namespace std; int main() { int a,b; scanf ("%d %d",&a,&b); a = max(a,23); b = min(b,25); if (a <= b) printf ("%d\n",b-a+1); else puts("0"); return 0; }