a,b=map(int,input().split()) cnt=0 for i in range(a,b+1): cnt+=i==23 or i==24 or i==25 print(3-cnt)