a, b = map(int, input().split()) ans = 3 for num in range(23, 26): if a <= num <= b: ans -= 1 print(ans)