ans = 0 a, b = map(int, input().split()) for i in range(23, 26): if i < a or b < i: ans += 1 print(ans)