a, b = map(int, input().split()) cnt = 0 d = list(range(a, b+1)) for x in [23, 24, 25]: if not x in d: cnt += 1 print(cnt)