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