a,b = map(int, input().split()) c = [a<=i<=b for i in [23,24,25]] print(c.count(False))