A = 0 B = 0 A, B = map(int, input().split()) c = 0 while A <= B: if A == 23 or A == 24 or A == 25: c = c+1 A = A+1 print(3-c)