a,b=map(int, input().split()) cnt = 0 for i in [23,24,25]: if a <= i <= b: cnt += 1 print(cnt)