l, r = map(int, input().split()) if l % 2 == 0: count = (r - l) // 2 + 1 else: count = (r - l + 1) // 2 print(count)