x,y = map(int,input().split()) count_num = 0 for i in [23,24,25]: if x <= i <= y: count_num += 1 print(count_num)