n = input() m = n.split() p = [int(i) for i in m] q = [23, 24, 25] a = 0 for i in q: if p[0] <= i <= p[1]: pass else: a = a + 1 print(a)