a,b = map(int,input().split()) ret = 3 for i in range(23, 26): if a<=i<=b: ret -= 1 print(ret)