A, B = map(int, input().split()) count = B // 3 - (A - 1) // 3 print(count + 1)